toJson method
Converts this object to something serializable in JSON.
Implementation
Object toJson() {
return <Object>[point.toJson(), weight];
}
Converts this object to something serializable in JSON.
Object toJson() {
return <Object>[point.toJson(), weight];
}