toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (dateTime != null) 'dateTime': dateTime!,
      if (healthRecommendations != null)
        'healthRecommendations': healthRecommendations!,
      if (indexes != null) 'indexes': indexes!,
      if (pollutants != null) 'pollutants': pollutants!,
    };