toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final imageX = this.imageX;
  final imageY = this.imageY;
  return {
    if (imageX != null) 'imageX': imageX,
    if (imageY != null) 'imageY': imageY,
  };
}