MetaDataModel.fromMap constructor
MetaDataModel.fromMap(
- Map<String, dynamic> json
)
Implementation
factory MetaDataModel.fromMap(Map<String, dynamic> json) => MetaDataModel(
title: json["title"] == null ? null : json["title"],
authorName: json["author_name"] == null ? null : json["author_name"],
authorUrl: json["author_url"] == null ? null : json["author_url"],
type: json["type"] == null ? null : json["type"],
height: json["height"] == null ? null : json["height"],
width: json["width"] == null ? null : json["width"],
version: json["version"] == null ? null : json["version"],
providerName:
json["provider_name"] == null ? null : json["provider_name"],
providerUrl: json["provider_url"] == null ? null : json["provider_url"],
thumbnailHeight:
json["thumbnail_height"] == null ? null : json["thumbnail_height"],
thumbnailWidth:
json["thumbnail_width"] == null ? null : json["thumbnail_width"],
thumbnailUrl:
json["thumbnail_url"] == null ? null : json["thumbnail_url"],
html: json["html"] == null ? null : json["html"],
url: json["url"] == null ? null : json["url"],
description: json["description"] == null ? null : json["description"],
);