LabelModification.fromJson constructor

LabelModification.fromJson(
  1. Map json_
)

Implementation

LabelModification.fromJson(core.Map json_)
    : this(
        fieldModifications: json_.containsKey('fieldModifications')
            ? (json_['fieldModifications'] as core.List)
                .map((value) => LabelFieldModification.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labelId: json_.containsKey('labelId')
            ? json_['labelId'] as core.String
            : null,
        removeLabel: json_.containsKey('removeLabel')
            ? json_['removeLabel'] as core.bool
            : null,
      );