toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (athletes != null) 'athletes': athletes!,
      if (children != null) 'children': children!,
      if (elderly != null) 'elderly': elderly!,
      if (generalPopulation != null) 'generalPopulation': generalPopulation!,
      if (heartDiseasePopulation != null)
        'heartDiseasePopulation': heartDiseasePopulation!,
      if (lungDiseasePopulation != null)
        'lungDiseasePopulation': lungDiseasePopulation!,
      if (pregnantWomen != null) 'pregnantWomen': pregnantWomen!,
    };