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