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