You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tangheem/lib/models/general_response_model.dart

22 lines
575 B
Dart

class GeneralResponseModel {
int statusCode;
String message;
Null result;
GeneralResponseModel({this.statusCode, this.message, this.result});
GeneralResponseModel.fromJson(Map<String, dynamic> json) {
statusCode = json['statusCode'];
message = json['message'] ?? json['statusMessage'];
result = json['result'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['statusCode'] = this.statusCode;
data['message'] = this.message;
data['result'] = this.result;
return data;
}
}