NodeGroup.fromJson constructor

NodeGroup.fromJson(
  1. Object? j
)

Implementation

factory NodeGroup.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return NodeGroup(
    autoscalingPolicy: switch (json['autoscalingPolicy']) {
      null => null,
      Object $1 => NodeGroupAutoscalingPolicy.fromJson($1),
    },
    creationTimestamp: switch (json['creationTimestamp']) {
      null => null,
      Object $1 => decodeString($1),
    },
    description: switch (json['description']) {
      null => null,
      Object $1 => decodeString($1),
    },
    fingerprint: switch (json['fingerprint']) {
      null => null,
      Object $1 => decodeString($1),
    },
    id: switch (json['id']) {
      null => null,
      Object $1 => decodeUint64($1),
    },
    kind: switch (json['kind']) {
      null => null,
      Object $1 => decodeString($1),
    },
    locationHint: switch (json['locationHint']) {
      null => null,
      Object $1 => decodeString($1),
    },
    maintenanceInterval: switch (json['maintenanceInterval']) {
      null => null,
      Object $1 => decodeString($1),
    },
    maintenancePolicy: switch (json['maintenancePolicy']) {
      null => null,
      Object $1 => decodeString($1),
    },
    maintenanceWindow: switch (json['maintenanceWindow']) {
      null => null,
      Object $1 => NodeGroupMaintenanceWindow.fromJson($1),
    },
    name: switch (json['name']) {
      null => null,
      Object $1 => decodeString($1),
    },
    nodeTemplate: switch (json['nodeTemplate']) {
      null => null,
      Object $1 => decodeString($1),
    },
    selfLink: switch (json['selfLink']) {
      null => null,
      Object $1 => decodeString($1),
    },
    shareSettings: switch (json['shareSettings']) {
      null => null,
      Object $1 => ShareSettings.fromJson($1),
    },
    size: switch (json['size']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    status: switch (json['status']) {
      null => null,
      Object $1 => decodeString($1),
    },
    zone: switch (json['zone']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}