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

19 lines
445 B
Dart
Raw Normal View History

2022-09-26 06:33:52 +00:00
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;
}
}