PaymentMethodDomain.fromJson constructor
PaymentMethodDomain.fromJson(
- Object? json
Implementation
factory PaymentMethodDomain.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodDomain(
applePay: PaymentMethodDomainResourcePaymentMethodStatus.fromJson(
map['apple_pay']),
created:
DateTime.fromMillisecondsSinceEpoch((map['created'] as int).toInt()),
domainName: (map['domain_name'] as String),
enabled: (map['enabled'] as bool),
googlePay: PaymentMethodDomainResourcePaymentMethodStatus.fromJson(
map['google_pay']),
id: (map['id'] as String),
link:
PaymentMethodDomainResourcePaymentMethodStatus.fromJson(map['link']),
livemode: (map['livemode'] as bool),
paypal: PaymentMethodDomainResourcePaymentMethodStatus.fromJson(
map['paypal']),
);
}