30 lines
904 B
Dart
30 lines
904 B
Dart
|
|
class PaymentCredentialModel {
|
||
|
|
PaymentCredentialModel({
|
||
|
|
required this.shurjopayserverUrl,
|
||
|
|
required this.merchantuserName,
|
||
|
|
required this.merchantPassword,
|
||
|
|
required this.merchantkeyPrefix,
|
||
|
|
});
|
||
|
|
|
||
|
|
PaymentCredentialModel.fromJson(dynamic json) {
|
||
|
|
shurjopayserverUrl = json['SHURJOPAY_SERVER_URL'];
|
||
|
|
merchantuserName = json['MERCHANT_USERNAME'];
|
||
|
|
merchantPassword = json['MERCHANT_PASSWORD'];
|
||
|
|
merchantkeyPrefix = json['MERCHANT_KEY_PREFIX'];
|
||
|
|
}
|
||
|
|
|
||
|
|
late String shurjopayserverUrl;
|
||
|
|
late String merchantuserName;
|
||
|
|
late String merchantPassword;
|
||
|
|
late String merchantkeyPrefix;
|
||
|
|
|
||
|
|
Map<String, dynamic> toJson() {
|
||
|
|
final map = <String, dynamic>{};
|
||
|
|
map['SHURJOPAY_SERVER_URL'] = shurjopayserverUrl;
|
||
|
|
map['MERCHANT_USERNAME'] = merchantuserName;
|
||
|
|
map['MERCHANT_PASSWORD'] = merchantPassword;
|
||
|
|
map['MERCHANT_KEY_PREFIX'] = merchantkeyPrefix;
|
||
|
|
return map;
|
||
|
|
}
|
||
|
|
}
|