ApplePayDomainCreateOptions.fromJson constructor

ApplePayDomainCreateOptions.fromJson(
  1. Object? json
)

Implementation

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