toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.x != null) {
json[r'x'] = this.x;
} else {
json[r'x'] = null;
}
if (this.y != null) {
json[r'y'] = this.y;
} else {
json[r'y'] = null;
}
if (this.mapId != null) {
json[r'map_id'] = this.mapId;
} else {
json[r'map_id'] = null;
}
return json;
}