FileTransfer.fromJson constructor
Implementation
factory FileTransfer.fromJson(Map<String, dynamic> json) => FileTransfer(
id: json['id'] as String? ?? '',
file: fileFromPath(json['filePath'] as String?),
isTransfering: json['isTransfering'] as bool? ?? false,
metadata: fromRawMapToMapStringKeys(json['metadata'] as Map? ?? {}));