toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'pathway'] = this.pathway;
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.url != null) {
json[r'url'] = this.url;
} else {
json[r'url'] = null;
}
if (this.train != null) {
json[r'train'] = this.train;
} else {
json[r'train'] = null;
}
return json;
}