You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
826 B

class BaseData {
BaseData();
int code;
dynamic data;
dynamic extra;
bool isError;
bool isSuccess;
String msg;
String path;
String timestamp;
factory BaseData.fromJson(Map<String, dynamic> json) => BaseData()
..code = json['code'] as int
..data = json['data']
..extra = json['extra']
..isError = json['isError'] as bool
..isSuccess = json['isSuccess'] as bool
..msg = json['msg'] as String
..path = json['path'] as String
..timestamp = json['timestamp'] as String;
Map<String, dynamic> toJson() => <String, dynamic>{
'code': this.code,
'data': this.data,
'extra': this.extra,
'isError': this.isError,
'isSuccess': this.isSuccess,
'msg': this.msg,
'path': this.path,
'timestamp': this.timestamp,
};
}