toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'pathway'] = this.pathway;
json[r'url'] = this.url;
json[r'platform_key'] = this.platformKey;
if (this.documentName != null) {
json[r'document_name'] = this.documentName;
} else {
json[r'document_name'] = null;
}
if (this.documentType != null) {
json[r'document_type'] = this.documentType;
} else {
json[r'document_type'] = null;
}
if (this.tokens != null) {
json[r'tokens'] = this.tokens;
} else {
json[r'tokens'] = null;
}
if (this.isTrained != null) {
json[r'is_trained'] = this.isTrained;
} else {
json[r'is_trained'] = null;
}
return json;
}