LogStreamFile.fromJson constructor

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

Parses a LogStreamFile from TDLib JSON.

Implementation

factory LogStreamFile.fromJson(Map<String, dynamic> json) => LogStreamFile(
  path: _readString(json['path']),
  maxFileSize: _readInt(json['max_file_size']),
  redirectStderr: _readBool(json['redirect_stderr']),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);