18 lines
363 B
Dart
18 lines
363 B
Dart
|
|
||
|
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 = "";
|
||
|
}
|
||
|
}
|