toJson method

Map<String, dynamic> toJson()

Returns a JSON object which represents this object.

Implementation

Map<String, dynamic> toJson() {
  return {
    ApiFields.routeId: routeId,
    ApiFields.name: name,
    ApiFields.lineDescription: lineDescription,
  };
}