toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (arrivalDateTime != null) 'arrivalDateTime': arrivalDateTime!,
if (carriage != null) 'carriage': carriage!,
if (departureDateTime != null) 'departureDateTime': departureDateTime!,
if (destinationName != null) 'destinationName': destinationName!,
if (destinationStationCode != null)
'destinationStationCode': destinationStationCode!,
if (fareName != null) 'fareName': fareName!,
if (originName != null) 'originName': originName!,
if (originStationCode != null) 'originStationCode': originStationCode!,
if (platform != null) 'platform': platform!,
if (ticketSeat != null) 'ticketSeat': ticketSeat!,
if (ticketSeats != null) 'ticketSeats': ticketSeats!,
if (transitOperatorName != null)
'transitOperatorName': transitOperatorName!,
if (transitTerminusName != null)
'transitTerminusName': transitTerminusName!,
if (zone != null) 'zone': zone!,
};