AuditLogConfig.fromJson constructor

AuditLogConfig.fromJson(
  1. Object? j
)

Implementation

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