TerminalLocationOrId.fromJson constructor
TerminalLocationOrId.fromJson(
- Object? json
Implementation
factory TerminalLocationOrId.fromJson(Object? json) {
if (json is String) {
return TerminalLocationId(id: json);
}
return TerminalLocation.fromJson(json);
}