PlantInfo.fromJson constructor

PlantInfo.fromJson(
  1. Map json_
)

Implementation

PlantInfo.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,
        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,
        plantDescription: json_.containsKey('plantDescription')
            ? PlantDescription.fromJson(json_['plantDescription']
                as core.Map<core.String, core.dynamic>)
            : null,
      );