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