fromJson static method

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

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,
  );
}