PaymentMethodDomainCreateOptions.fromJson constructor
PaymentMethodDomainCreateOptions.fromJson(
- Object? json
Implementation
factory PaymentMethodDomainCreateOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentMethodDomainCreateOptions(
domainName: (map['domain_name'] as String),
enabled: map['enabled'] == null ? null : (map['enabled'] as bool),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
);
}