ThumbPreview.fromJson constructor

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

Implementation

ThumbPreview.fromJson(Map<String, dynamic> json) {
  if (json["url"] is String) this.url = json["url"];
  if (json["frame_width"] is int) this.frameWidth = json["frame_width"];
  if (json["height"] is int) this.height = json["height"];
  if (json["width"] is int) this.width = json["width"];
  if (json["frame_height"] is int) this.frameHeight = json["frame_height"];
  if (json["frames"] is int) this.frames = json["frames"];
  if (json["columns"] is int) this.columns = json["columns"];
}