InputMessageDocument.fromJson constructor

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

Parse from a json

Implementation

factory InputMessageDocument.fromJson(Map<String, dynamic> json) => InputMessageDocument(
  document: InputFile.fromJson(json['document']),
  thumbnail: json['thumbnail'] == null ? null : InputThumbnail.fromJson(json['thumbnail']),
  disableContentTypeDetection: json['disable_content_type_detection'],
  caption: json['caption'] == null ? null : FormattedText.fromJson(json['caption']),
);