Application/medcify/lib/models/api/overview_response.dart
2022-09-26 12:03:52 +05:30

17 lines
370 B
Dart

class OverviewResponse{
bool? status;
String? message;
dynamic count;
OverviewResponse.fromJson(Map<String, dynamic> json){
status = (json["Code"] ?? "0") != "0";
message = json["Message"] ?? "Something went wrong";
count = json["Data"] ?? 0;
}
OverviewResponse.withError(String err){
status = false;
message = err;
count = 0;
}
}