CashBalance.fromJson constructor
CashBalance.fromJson(
- Object? json
Implementation
factory CashBalance.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return CashBalance(
available: map['available'] == null
? null
: (map['available'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
(value as num).toInt(),
)),
customer: (map['customer'] as String),
livemode: (map['livemode'] as bool),
settings:
CustomerBalanceCustomerBalanceSettings.fromJson(map['settings']),
);
}