toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (locale != null) 'locale': locale!.toJson(),
    if (entryMode != null) 'entryMode': entryMode!.toJson(),
    if (cameraSelector != null) 'cameraSelector': cameraSelector!.toJson(),
    if (screenOrientation != null)
      'screenOrientation': screenOrientation!.toJson(),
    if (transformation != null) 'transformation': transformation!.toJson(),
    if (previewConfig != null) 'previewConfig': previewConfig!.toJson(),
    if (documentConfig != null) 'documentConfig': documentConfig!.toJson(),
    if (faceConfig != null) 'faceConfig': faceConfig!.toJson(),
    if (videoConfig != null) 'videoConfig': videoConfig!.toJson(),
    if (debugEnabled != null) 'debugEnabled': debugEnabled,
  };
}