toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (bodyRows != null)
        'bodyRows': bodyRows!.map((value) => value.toJson()).toList(),
      if (detectedLanguages != null)
        'detectedLanguages':
            detectedLanguages!.map((value) => value.toJson()).toList(),
      if (headerRows != null)
        'headerRows': headerRows!.map((value) => value.toJson()).toList(),
      if (layout != null) 'layout': layout!.toJson(),
    };