Allows you to serialize object.
Map<String, dynamic> toJson() { return {"width": width, "height": height}.clearNulls(); }