UpdateCorpusRequest.fromJson constructor
UpdateCorpusRequest.fromJson(
- Object? j
Implementation
factory UpdateCorpusRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return UpdateCorpusRequest(
corpus: switch (json['corpus']) {
null => null,
Object $1 => Corpus.fromJson($1),
},
updateMask: switch (json['updateMask']) {
null => null,
Object $1 => FieldMask.fromJson($1),
},
);
}