toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  final points = this.points;
  final annotation = this.annotation;
  final extraInfoJSON = this.extraInfoJSON;

  if (points != null) {
    data['points'] = points.toJson();
  }
  if (annotation != null) {
    data['annotation'] = annotation.toJson();
  }
  data['sign'] = this.sign;
  data['name'] = this.name;
  data['distance'] = this.distance;
  data['time'] = this.time;
  if (extraInfoJSON != null) {
    data['extraInfoJSON'] = extraInfoJSON.toJson();
  }
  data['length'] = this.length;
  return data;
}