PollenTypeInfo.fromJson constructor

PollenTypeInfo.fromJson(
  1. Map json_
)

Implementation

PollenTypeInfo.fromJson(core.Map json_)
    : this(
        code: json_['code'] as core.String?,
        displayName: json_['displayName'] as core.String?,
        healthRecommendations: (json_['healthRecommendations'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
        inSeason: json_['inSeason'] as core.bool?,
        indexInfo: json_.containsKey('indexInfo')
            ? IndexInfo.fromJson(
                json_['indexInfo'] as core.Map<core.String, core.dynamic>)
            : null,
      );