Data.fromJson constructor

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

Implementation

factory Data.fromJson(Map<String, dynamic> json) => Data(
  id: json["id"],
  title: json["title"],
  urlViewer: json["url_viewer"],
  url: json["url"],
  displayUrl: json["display_url"],
  width: json["width"],
  height: json["height"],
  size: json["size"],
  time: json["time"],
  expiration: json["expiration"],
  image: json["image"] == null ? null : Image.fromJson(json["image"]),
  thumb: json["thumb"] == null ? null : Image.fromJson(json["thumb"]),
  deleteUrl: json["delete_url"],
);