SessionFixedAmount.fromJson constructor
SessionFixedAmount.fromJson(
- Object? json
Implementation
factory SessionFixedAmount.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SessionFixedAmount(
amount: (map['amount'] as num).toInt(),
currency: (map['currency'] as String),
currencyOptions: map['currency_options'] == null
? null
: (map['currency_options'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
SessionCurrencyOptionsValue.fromJson(value),
)),
);
}