DatedFile.fromJson constructor

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

Parses a DatedFile from TDLib JSON.

Implementation

factory DatedFile.fromJson(Map<String, dynamic> json) => DatedFile(
      file: _readObject(json['file'], File.fromJson),
      date: _readInt(json['date']),
    );