LabelValue.fromJson constructor

LabelValue.fromJson(
  1. Map json_
)

Implementation

LabelValue.fromJson(core.Map json_)
    : this(
        label:
            json_.containsKey('label') ? json_['label'] as core.String : null,
        localizedLabel: json_.containsKey('localizedLabel')
            ? LocalizedString.fromJson(json_['localizedLabel']
                as core.Map<core.String, core.dynamic>)
            : null,
        localizedValue: json_.containsKey('localizedValue')
            ? LocalizedString.fromJson(json_['localizedValue']
                as core.Map<core.String, core.dynamic>)
            : null,
        value:
            json_.containsKey('value') ? json_['value'] as core.String : null,
      );