AuthorizationAmountDetails.fromJson constructor

AuthorizationAmountDetails.fromJson(
  1. Object? json
)

Implementation

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