$LabelDescriptor.fromJson constructor Null safety

$LabelDescriptor.fromJson(
  1. Map _json
)

Implementation

$LabelDescriptor.fromJson(core.Map _json)
    : this(
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        key: _json.containsKey('key') ? _json['key'] as core.String : null,
        valueType: _json.containsKey('valueType')
            ? _json['valueType'] as core.String
            : null,
      );