IssuingCardholderSpendingLimit.fromJson constructor
IssuingCardholderSpendingLimit.fromJson(
- Object? json
Implementation
factory IssuingCardholderSpendingLimit.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return IssuingCardholderSpendingLimit(
amount: (map['amount'] as num).toInt(),
categories: map['categories'] == null
? null
: (map['categories'] as List<Object?>)
.map((el) =>
IssuingCardholderSpendingControlsAllowedCategoriesItem
.fromJson(el))
.toList(),
interval: IssuingCardSpendingLimitInterval.fromJson(map['interval']),
);
}