parseEmbedImage method

EmbedImage parseEmbedImage(
  1. Map<String, Object?> raw
)

Implementation

EmbedImage parseEmbedImage(Map<String, Object?> raw) {
  return EmbedImage(
    url: Uri.parse(raw['url'] as String),
    proxiedUrl: maybeParse(raw['proxy_url'], Uri.parse),
    height: raw['height'] as int?,
    width: raw['width'] as int?,
  );
}