toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (blocks != null)
'blocks': blocks!.map((value) => value.toJson()).toList(),
if (detectedLanguages != null)
'detectedLanguages':
detectedLanguages!.map((value) => value.toJson()).toList(),
if (dimension != null) 'dimension': dimension!.toJson(),
if (formFields != null)
'formFields': formFields!.map((value) => value.toJson()).toList(),
if (image != null) 'image': image!.toJson(),
if (layout != null) 'layout': layout!.toJson(),
if (lines != null)
'lines': lines!.map((value) => value.toJson()).toList(),
if (pageNumber != null) 'pageNumber': pageNumber!,
if (paragraphs != null)
'paragraphs': paragraphs!.map((value) => value.toJson()).toList(),
if (provenance != null) 'provenance': provenance!.toJson(),
if (tables != null)
'tables': tables!.map((value) => value.toJson()).toList(),
if (tokens != null)
'tokens': tokens!.map((value) => value.toJson()).toList(),
if (transforms != null)
'transforms': transforms!.map((value) => value.toJson()).toList(),
if (visualElements != null)
'visualElements':
visualElements!.map((value) => value.toJson()).toList(),
};