toMap method

Map<String, num> toMap()

Implementation

Map<String, num> toMap() {
  return {
    "width": width,
    "height": height,
  };
}