first commit
This commit is contained in:
29
lib/Screens/subscription/Model/payment_credential_model.dart
Normal file
29
lib/Screens/subscription/Model/payment_credential_model.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user