toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of this object.

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    ApiFields.displayName: name,
    ApiFields.startStationCode: startStationCode,
    ApiFields.endStationCode: endStationCode,
    ApiFields.internalDestination1: internalDestination1,
    ApiFields.internalDestination2: internalDestination2,
    ApiFields.lineCode: lineCode,
  };
}