PaymentMethodDomainUpdateOptions.fromJson constructor

PaymentMethodDomainUpdateOptions.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodDomainUpdateOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodDomainUpdateOptions(
    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(),
  );
}