SetLabelsRequest.fromJson constructor

SetLabelsRequest.fromJson(
  1. Map json_
)

Implementation

SetLabelsRequest.fromJson(core.Map json_)
    : this(
        clusterId: json_.containsKey('clusterId')
            ? json_['clusterId'] as core.String
            : null,
        labelFingerprint: json_.containsKey('labelFingerprint')
            ? json_['labelFingerprint'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        projectId: json_.containsKey('projectId')
            ? json_['projectId'] as core.String
            : null,
        resourceLabels: json_.containsKey('resourceLabels')
            ? (json_['resourceLabels'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );