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