NetworkEdgeSecurityServicesScopedList.fromJson constructor

NetworkEdgeSecurityServicesScopedList.fromJson(
  1. Object? j
)

Implementation

factory NetworkEdgeSecurityServicesScopedList.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return NetworkEdgeSecurityServicesScopedList(
    networkEdgeSecurityServices:
        switch (json['networkEdgeSecurityServices']) {
          null => [],
          List<Object?> $1 => [
            for (final i in $1) NetworkEdgeSecurityService.fromJson(i),
          ],
          _ => throw const FormatException(
            '"networkEdgeSecurityServices" is not a list',
          ),
        },
    warning: switch (json['warning']) {
      null => null,
      Object $1 => Warning.fromJson($1),
    },
  );
}