Document.fromJson constructor

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

Parse from a json

Implementation

Document.fromJson(Map<String, dynamic> json) {
  this.fileName = json['file_name'];
  this.mimeType = json['mime_type'];
  this.minithumbnail =
      Minithumbnail.fromJson(json['minithumbnail'] ?? <String, dynamic>{});
  this.thumbnail =
      Thumbnail.fromJson(json['thumbnail'] ?? <String, dynamic>{});
  this.document = File.fromJson(json['document'] ?? <String, dynamic>{});
}