toMap method

Map<String, dynamic> toMap()

Converts this image to a map representation.

Implementation

Map<String, dynamic> toMap() {
  return {'url': url.toString(), 'height': height, 'width': width};
}