fromJson static method
Implementation
static File? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return File(
id: (json['id'] as int?) ?? 0,
size: (json['size'] as int?) ?? 0,
expectedSize: (json['expected_size'] as int?) ?? 0,
local: LocalFile.fromJson(tdMapFromJson(json['local'])),
remote: RemoteFile.fromJson(tdMapFromJson(json['remote'])),
);
}