BalanceAmount.fromJson constructor
BalanceAmount.fromJson(
- Object? json
Implementation
factory BalanceAmount.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return BalanceAmount(
amount: (map['amount'] as num).toInt(),
currency: (map['currency'] as String),
sourceTypes: map['source_types'] == null
? null
: BalanceAmountBySourceType.fromJson(map['source_types']),
);
}