class PayFastModel { String? returnUrl; String? cancelUrl; String? notifyUrl; String? merchantKey; bool? isEnable; String? merchantId; bool? isSandbox; PayFastModel({this.returnUrl, this.cancelUrl, this.notifyUrl, this.merchantKey, this.isEnable, this.merchantId, this.isSandbox}); PayFastModel.fromJson(Map json) { returnUrl = json['return_url']; cancelUrl = json['cancel_url']; notifyUrl = json['notify_url']; merchantKey = json['merchant_key']; isEnable = json['isEnable']; merchantId = json['merchant_id']; isSandbox = json['isSandbox']; } Map toJson() { final Map data = {}; data['return_url'] = returnUrl; data['cancel_url'] = cancelUrl; data['notify_url'] = notifyUrl; data['merchant_key'] = merchantKey; data['isEnable'] = isEnable; data['merchant_id'] = merchantId; data['isSandbox'] = isSandbox; return data; } }