PollenTypeInfo.fromJson constructor

PollenTypeInfo.fromJson(
  1. Map json_
)

Implementation

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