RailIncident constructor

RailIncident({
  1. required DateTime timeOfLastUpdate,
  2. required String description,
  3. required String incidentId,
  4. required String incidentType,
  5. required List<String> affectedLines,
})

Creates a RailIncident object.

Implementation

RailIncident({
  required this.timeOfLastUpdate,
  required this.description,
  required this.incidentId,
  required this.incidentType,
  required this.affectedLines,
});