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 (explicitAnnotation != null) {
    _json["explicitAnnotation"] = (explicitAnnotation).toJson();
  }
  if (labelAnnotations != null) {
    _json["labelAnnotations"] =
        labelAnnotations.map((value) => (value).toJson()).toList();
  }
  if (objectAnnotations != null) {
    _json["objectAnnotations"] =
        objectAnnotations.map((value) => (value).toJson()).toList();
  }
  if (shotAnnotations != null) {
    _json["shotAnnotations"] =
        shotAnnotations.map((value) => (value).toJson()).toList();
  }
  return _json;
}