asMap method

  1. @override
Map<String, Object?> asMap()
override

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

Implementation

@override
Map<String, Object?> asMap() {
  final map = super.asMap();
  map.addAll({
    'modifier': modifier.asMap(),
    'wind': wind.asMap(),
    'wind_variation': windVariation.asMap(),
    'prevailing_visibility': prevailingVisibility.asMap(),
    'minimum_visibility': minimumVisibility.asMap(),
    'runway_ranges': runwayRanges.asMap(),
    'weathers': weathers.asMap(),
    'clouds': clouds.asMap(),
    'temperatures': temperatures.asMap(),
    'pressure': pressure.asMap(),
    'recent_weather': recentWeather.asMap(),
    'windshear': windshears.asMap(),
    'sea_state': seaState.asMap(),
    'runway_state': runwayState.asMap(),
    'flight_rules': flightRules,
    'weather_trends': weatherTrends.asMap(),
    'remark': remark,
  });
  return map;
}