TerminalConfigurationCreateOptions.fromJson constructor
TerminalConfigurationCreateOptions.fromJson(
- Object? json
Implementation
factory TerminalConfigurationCreateOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TerminalConfigurationCreateOptions(
bbposWiseposE: map['bbpos_wisepos_e'] == null
? null
: ConfigurationBbposWiseposE.fromJson(map['bbpos_wisepos_e']),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
name: map['name'] == null ? null : (map['name'] as String),
offline: map['offline'] == null
? null
: PortalSubscriptionPause.fromJson(map['offline']),
tipping: map['tipping'] == null
? null
: ConfigurationTipping.fromJson(map['tipping']),
verifoneP400: map['verifone_p400'] == null
? null
: ConfigurationBbposWiseposE.fromJson(map['verifone_p400']),
);
}