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