File.fromJson constructor

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

Parse from a json

Implementation

factory File.fromJson(Map<String, dynamic> json) => File(
      id: json['id'],
      size: json['size'],
      expectedSize: json['expected_size'],
      local: LocalFile.fromJson(json['local']),
      remote: RemoteFile.fromJson(json['remote']),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );