Corpus.fromJson constructor
Corpus.fromJson(
- Object? j
Implementation
factory Corpus.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Corpus(
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
displayName: switch (json['displayName']) {
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),
},
);
}