DiscordEmbedThumbnail.fromJson constructor

DiscordEmbedThumbnail.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DiscordEmbedThumbnail.fromJson(Map<String, dynamic> json) =>
    DiscordEmbedThumbnail(
      url: json[urlEntry] as String,
      proxyUrl: json[proxyUrlEntry] as String?,
      height: json[heightEntry] as int?,
      width: json[widthEntry] as int?,
    );