toJson method

Map<String, Object> toJson ()

Implementation

core.Map<core.String, core.Object> toJson() {
  final core.Map<core.String, core.Object> _json =
      new core.Map<core.String, core.Object>();
  if (error != null) {
    _json["error"] = (error).toJson();
  }
  if (explicitAnnotation != null) {
    _json["explicitAnnotation"] = (explicitAnnotation).toJson();
  }
  if (frameLabelAnnotations != null) {
    _json["frameLabelAnnotations"] =
        frameLabelAnnotations.map((value) => (value).toJson()).toList();
  }
  if (inputUri != null) {
    _json["inputUri"] = inputUri;
  }
  if (logoRecognitionAnnotations != null) {
    _json["logoRecognitionAnnotations"] =
        logoRecognitionAnnotations.map((value) => (value).toJson()).toList();
  }
  if (objectAnnotations != null) {
    _json["objectAnnotations"] =
        objectAnnotations.map((value) => (value).toJson()).toList();
  }
  if (segment != null) {
    _json["segment"] = (segment).toJson();
  }
  if (segmentLabelAnnotations != null) {
    _json["segmentLabelAnnotations"] =
        segmentLabelAnnotations.map((value) => (value).toJson()).toList();
  }
  if (segmentPresenceLabelAnnotations != null) {
    _json["segmentPresenceLabelAnnotations"] = segmentPresenceLabelAnnotations
        .map((value) => (value).toJson())
        .toList();
  }
  if (shotAnnotations != null) {
    _json["shotAnnotations"] =
        shotAnnotations.map((value) => (value).toJson()).toList();
  }
  if (shotLabelAnnotations != null) {
    _json["shotLabelAnnotations"] =
        shotLabelAnnotations.map((value) => (value).toJson()).toList();
  }
  if (shotPresenceLabelAnnotations != null) {
    _json["shotPresenceLabelAnnotations"] = shotPresenceLabelAnnotations
        .map((value) => (value).toJson())
        .toList();
  }
  if (speechTranscriptions != null) {
    _json["speechTranscriptions"] =
        speechTranscriptions.map((value) => (value).toJson()).toList();
  }
  if (textAnnotations != null) {
    _json["textAnnotations"] =
        textAnnotations.map((value) => (value).toJson()).toList();
  }
  return _json;
}