TerminalConfiguration.fromJson constructor
TerminalConfiguration.fromJson(
- Object? json
Implementation
factory TerminalConfiguration.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TerminalConfiguration(
bbposWiseposE: map['bbpos_wisepos_e'] == null
? null
: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig
.fromJson(map['bbpos_wisepos_e']),
id: (map['id'] as String),
isAccountDefault: map['is_account_default'] == null
? null
: (map['is_account_default'] as bool),
livemode: (map['livemode'] as bool),
name: map['name'] == null ? null : (map['name'] as String),
offline: map['offline'] == null
? null
: TerminalConfigurationConfigurationResourceOfflineConfig.fromJson(
map['offline']),
tipping: map['tipping'] == null
? null
: TerminalConfigurationConfigurationResourceTipping.fromJson(
map['tipping']),
verifoneP400: map['verifone_p400'] == null
? null
: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig
.fromJson(map['verifone_p400']),
);
}