FileTransfer.fromJson constructor

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

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? ?? {}));