NodeGroupAutoscalingPolicy.fromJson constructor

NodeGroupAutoscalingPolicy.fromJson(
  1. Object? j
)

Implementation

factory NodeGroupAutoscalingPolicy.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return NodeGroupAutoscalingPolicy(
    maxNodes: switch (json['maxNodes']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    minNodes: switch (json['minNodes']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    mode: switch (json['mode']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}