MessageDocument.fromJson constructor

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

Parse from a json

Implementation

factory MessageDocument.fromJson(Map<String, dynamic> json) => MessageDocument(
  document: Document.fromJson(json['document']),
  caption: FormattedText.fromJson(json['caption']),
);