19 lines
445 B
Dart
19 lines
445 B
Dart
class RazorPayResponse{
|
|
bool? status;
|
|
String? message;
|
|
String? razorPayKey;
|
|
String? razorPaySecretKey;
|
|
|
|
RazorPayResponse.fromJson(Map<String, dynamic> json){
|
|
status = (json["Code"] ?? "") != "0";
|
|
razorPayKey = json["Key"] ?? "";
|
|
razorPaySecretKey = json["secretKey"] ?? "";
|
|
message = json["Message"] ?? "Something went wrong";
|
|
}
|
|
|
|
RazorPayResponse.withError(String err){
|
|
status = false;
|
|
message = err;
|
|
}
|
|
}
|