Initial commit
This commit is contained in:
30
lib/models/payment_model/pay_stack_model.dart
Normal file
30
lib/models/payment_model/pay_stack_model.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
class PayStackModel {
|
||||
bool? isSandbox;
|
||||
String? callbackURL;
|
||||
String? publicKey;
|
||||
String? secretKey;
|
||||
bool? isEnable;
|
||||
String? webhookURL;
|
||||
|
||||
PayStackModel({this.isSandbox, this.callbackURL, this.publicKey, this.secretKey, this.isEnable, this.webhookURL});
|
||||
|
||||
PayStackModel.fromJson(Map<String, dynamic> json) {
|
||||
isSandbox = json['isSandbox'];
|
||||
callbackURL = json['callbackURL'];
|
||||
publicKey = json['publicKey'];
|
||||
secretKey = json['secretKey'];
|
||||
isEnable = json['isEnable'];
|
||||
webhookURL = json['webhookURL'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['isSandbox'] = isSandbox;
|
||||
data['callbackURL'] = callbackURL;
|
||||
data['publicKey'] = publicKey;
|
||||
data['secretKey'] = secretKey;
|
||||
data['isEnable'] = isEnable;
|
||||
data['webhookURL'] = webhookURL;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user