NodeGroupsSimulateMaintenanceEventRequest.fromJson constructor
NodeGroupsSimulateMaintenanceEventRequest.fromJson(
- Object? j
Implementation
factory NodeGroupsSimulateMaintenanceEventRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return NodeGroupsSimulateMaintenanceEventRequest(
nodes: switch (json['nodes']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"nodes" is not a list'),
},
);
}