OEmbedData.fromJson constructor

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

Constructs a new OEmbedData instance from a JSON map.

Implementation

OEmbedData.fromJson(Map<String, dynamic> json) {
  title = json['title'];
  authorName = json['author_name'];
  authorUrl = json['author_url'];
  type = json['type'];
  height = json['height'];
  width = json['width'];
  version = json['version'];
  providerName = json['provider_name'];
  providerUrl = json['provider_url'];
  thumbnailHeight = json['thumbnail_height'];
  thumbnailWidth = json['thumbnail_width'];
  thumbnailUrl = json['thumbnail_url'];
  html = json['html'];
}