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