TerminalConfigurationConfigurationResourceTipping.fromJson constructor

TerminalConfigurationConfigurationResourceTipping.fromJson(
  1. Object? json
)

Implementation

factory TerminalConfigurationConfigurationResourceTipping.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TerminalConfigurationConfigurationResourceTipping(
    aud: map['aud'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['aud']),
    cad: map['cad'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['cad']),
    chf: map['chf'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['chf']),
    czk: map['czk'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['czk']),
    dkk: map['dkk'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['dkk']),
    eur: map['eur'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['eur']),
    gbp: map['gbp'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['gbp']),
    hkd: map['hkd'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['hkd']),
    myr: map['myr'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['myr']),
    nok: map['nok'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['nok']),
    nzd: map['nzd'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['nzd']),
    sek: map['sek'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['sek']),
    sgd: map['sgd'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['sgd']),
    usd: map['usd'] == null
        ? null
        : TerminalConfigurationConfigurationResourceCurrencySpecificConfig
            .fromJson(map['usd']),
  );
}