fromMap static method

GetRemoteFile? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static GetRemoteFile? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  if (_ != CONSTRUCTOR) return null;
  var extra = _map['@extra'];
  var clientId = _map['@clientId'];
  var remote_file_id = _map['remote_file_id']! as String;
  var file_type = FileType.fromMap(_map['file_type']);
  return GetRemoteFile(
    extra: extra,
    clientId: clientId,
    remote_file_id: remote_file_id,
    file_type: file_type,
  );
}