LogExclusion.fromJson constructor
LogExclusion.fromJson(
- Object? j
Implementation
factory LogExclusion.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return LogExclusion(
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
description: switch (json['description']) {
null => '',
Object $1 => decodeString($1),
},
filter: switch (json['filter']) {
null => '',
Object $1 => decodeString($1),
},
disabled: switch (json['disabled']) {
null => false,
Object $1 => decodeBool($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => Timestamp.fromJson($1),
},
updateTime: switch (json['updateTime']) {
null => null,
Object $1 => Timestamp.fromJson($1),
},
);
}