PersonalDocument.fromJson constructor

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

Parses a PersonalDocument from TDLib JSON.

Implementation

factory PersonalDocument.fromJson(Map<String, dynamic> json) =>
    PersonalDocument(
      files: _readList<DatedFile>(
          json['files'], (e) => _readObject(e, DatedFile.fromJson)),
      translation: _readList<DatedFile>(
          json['translation'], (e) => _readObject(e, DatedFile.fromJson)),
    );