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