toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
if (offsetX != null) {
json['offsetX'] = offsetX;
}
if (offsetY != null) {
json['offsetY'] = offsetY;
}
if (x != null) {
json['x'] = x;
}
if (y != null) {
json['y'] = y;
}
return json;
}