UpdateFile.fromJson constructor

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

Parses a UpdateFile from TDLib JSON.

Implementation

factory UpdateFile.fromJson(Map<String, dynamic> json) => UpdateFile(
      file: _readObject(json['file'], File.fromJson),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );