TaxRegistrationUpdateOptions.fromJson constructor

TaxRegistrationUpdateOptions.fromJson(
  1. Object? json
)

Implementation

factory TaxRegistrationUpdateOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TaxRegistrationUpdateOptions(
    activeFrom: map['active_from'] == null
        ? null
        : RegistrationActiveFrom.fromJson(map['active_from']),
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    expiresAt: map['expires_at'] == null
        ? null
        : RegistrationExpiresAt.fromJson(map['expires_at']),
  );
}