Map<String, dynamic> toJson() { Map<String, dynamic> rst = {"type": "Path"}; rst.addAll(super.toJson()); rst["path"] = path.toJson(); return rst; }