toJson method

Object toJson()

Converts the EmbedImage to a Map that can be serialized to JSON.

Implementation

Object toJson () => {
  'url': url,
  'proxy_url': proxyUrl,
  'width': width,
  'height': height,
};