fromJson static method
Implementation
static InputDocument? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputDocument(
document: InputFile.fromJson(tdMapFromJson(json['document'])),
thumbnail: InputThumbnail.fromJson(tdMapFromJson(json['thumbnail'])),
disableContentTypeDetection:
(json['disable_content_type_detection'] as bool?) ?? false,
);
}