asMap method

Map<String, Object?> asMap()

Returns the report data as a map like Map<String, Object?>.

Implementation

Map<String, Object?> asMap() {
  return <String, Object?>{
    'code': rawCode,
    'sections': sections,
    'unparsed_groups': unparsedGroups,
    'type_': type_.asMap(),
    'station': station.asMap(),
    'time': time.asMap(),
  };
}