IssuingTransactionAmountDetails.fromJson constructor

IssuingTransactionAmountDetails.fromJson(
  1. Object? json
)

Implementation

factory IssuingTransactionAmountDetails.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingTransactionAmountDetails(
    atmFee: map['atm_fee'] == null ? null : (map['atm_fee'] as num).toInt(),
    cashbackAmount: map['cashback_amount'] == null
        ? null
        : (map['cashback_amount'] as num).toInt(),
  );
}