binemmanuel

Model

Dec 14th, 2020
530
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Model {
  2.   final dynamic data;
  3.  
  4.   Model({
  5.     this.data,
  6.   });
  7.  
  8.   factory Model.fromJson(json) {
  9.     return Model(data: json);
  10.   }
  11.  
  12.   factory Model.fromBool(boolean) {
  13.     return Model(data: boolean);
  14.   }
  15. }
  16.  
RAW Paste Data