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