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

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;
}
}