toJson method
Returns a JSON object representing this object.
Implementation
Map<String, dynamic> toJson() {
return {
ApiFields.direction0: direction0.toJson(),
ApiFields.direction1: direction1.toJson(),
ApiFields.name: name,
ApiFields.routeId: routeId,
};
}