toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "file_name": this.fileName,
    "mime_type": this.mimeType,
    "minithumbnail":
        this.minithumbnail == null ? null : this.minithumbnail.toJson(),
    "thumbnail": this.thumbnail == null ? null : this.thumbnail.toJson(),
    "document": this.document == null ? null : this.document.toJson(),
  };
}