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 (entity != null) {
    _json["entity"] = (entity).toJson();
  }
  if (segments != null) {
    _json["segments"] = segments.map((value) => (value).toJson()).toList();
  }
  if (tracks != null) {
    _json["tracks"] = tracks.map((value) => (value).toJson()).toList();
  }
  return _json;
}