toJson method
Returns a JSON object representing this BusIncident.
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
ApiFields.dateUpdated: timeOfLastUpdate.toWmataString(),
ApiFields.description: description,
ApiFields.incidentId: incidentId,
ApiFields.incidentType: incidentType,
ApiFields.routesAffected: affectedRoutes,
};
}