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.

14 lines
393 B

class BaseModel {
int code;
dynamic result;
String message;
BaseModel({this.code, this.result, this.message});
BaseModel.fromJson(Map<String, dynamic> json) {
code = json['Code'] != null ? json['Code'] : json['code'];
result = json['Result'] != null ? json['Result'] : json['data'];
message = json['Message'] != null ? json['Message'] : json['msg'];
}
}