Application/medcify/lib/models/api/upi_qr_response.dart

18 lines
363 B
Dart
Raw Normal View History

2022-09-26 06:33:52 +00:00
class UpiQrResponse{
bool? status;
String? message;
String? image;
UpiQrResponse.fromJson(Map<String, dynamic> json){
status = (json["Code"] ?? "") != "0";
image = json["Data"] ?? "";
message = json["Message"] ?? "Something went wrong";
}
UpiQrResponse.withError(String err){
status = false;
message = err;
image = "";
}
}