IssuingCardholderRequirements.fromJson constructor

IssuingCardholderRequirements.fromJson(
  1. Object? json
)

Implementation

factory IssuingCardholderRequirements.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingCardholderRequirements(
    disabledReason: map['disabled_reason'] == null
        ? null
        : IssuingCardholderRequirementsDisabledReason.fromJson(
            map['disabled_reason']),
    pastDue: map['past_due'] == null
        ? null
        : (map['past_due'] as List<Object?>)
            .map(
                (el) => IssuingCardholderRequirementsPastDueItem.fromJson(el))
            .toList(),
  );
}