toJson method
Converts this object to something serializable in JSON.
Implementation
Object toJson() {
return <String, int>{
'x': x,
'y': y,
};
}
Converts this object to something serializable in JSON.
Object toJson() {
return <String, int>{
'x': x,
'y': y,
};
}