NodeGroup.fromJson constructor

NodeGroup.fromJson(
  1. Map json_
)

Implementation

NodeGroup.fromJson(core.Map json_)
    : this(
        autoscalingPolicy: json_.containsKey('autoscalingPolicy')
            ? NodeGroupAutoscalingPolicy.fromJson(json_['autoscalingPolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        fingerprint: json_.containsKey('fingerprint')
            ? json_['fingerprint'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        locationHint: json_.containsKey('locationHint')
            ? json_['locationHint'] as core.String
            : null,
        maintenanceInterval: json_.containsKey('maintenanceInterval')
            ? json_['maintenanceInterval'] as core.String
            : null,
        maintenancePolicy: json_.containsKey('maintenancePolicy')
            ? json_['maintenancePolicy'] as core.String
            : null,
        maintenanceWindow: json_.containsKey('maintenanceWindow')
            ? NodeGroupMaintenanceWindow.fromJson(json_['maintenanceWindow']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nodeTemplate: json_.containsKey('nodeTemplate')
            ? json_['nodeTemplate'] as core.String
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        shareSettings: json_.containsKey('shareSettings')
            ? ShareSettings.fromJson(
                json_['shareSettings'] as core.Map<core.String, core.dynamic>)
            : null,
        size: json_.containsKey('size') ? json_['size'] as core.int : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );