Label.fromJson constructor

Label.fromJson(
  1. Map json_
)

Implementation

Label.fromJson(core.Map json_)
    : this(
        fields: json_.containsKey('fields')
            ? (json_['fields'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  LabelField.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
      );