INFRA: Set Up Project.
This commit is contained in:
30
lib/models/payment_model/stripe_model.dart
Normal file
30
lib/models/payment_model/stripe_model.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
class StripeModel {
|
||||
String? stripeSecret;
|
||||
String? clientpublishableKey;
|
||||
bool? isWithdrawEnabled;
|
||||
bool? isEnabled;
|
||||
bool? isSandboxEnabled;
|
||||
String? stripeKey;
|
||||
|
||||
StripeModel({this.stripeSecret, this.clientpublishableKey, this.isWithdrawEnabled, this.isEnabled, this.isSandboxEnabled, this.stripeKey});
|
||||
|
||||
StripeModel.fromJson(Map<String, dynamic> json) {
|
||||
stripeSecret = json['stripeSecret'];
|
||||
clientpublishableKey = json['clientpublishableKey'];
|
||||
isWithdrawEnabled = json['isWithdrawEnabled'];
|
||||
isEnabled = json['isEnabled'];
|
||||
isSandboxEnabled = json['isSandboxEnabled'];
|
||||
stripeKey = json['stripeKey'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['stripeSecret'] = stripeSecret;
|
||||
data['clientpublishableKey'] = clientpublishableKey;
|
||||
data['isWithdrawEnabled'] = isWithdrawEnabled;
|
||||
data['isEnabled'] = isEnabled;
|
||||
data['isSandboxEnabled'] = isSandboxEnabled;
|
||||
data['stripeKey'] = stripeKey;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user