File.fromMap constructor

File.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory File.fromMap(Map<String, dynamic> map) {
  return File(
    $id: map['\$id'].toString(),
    bucketId: map['bucketId'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    $permissions: map['\$permissions'] ?? [],
    name: map['name'].toString(),
    signature: map['signature'].toString(),
    mimeType: map['mimeType'].toString(),
    sizeOriginal: map['sizeOriginal'],
    chunksTotal: map['chunksTotal'],
    chunksUploaded: map['chunksUploaded'],
  );
}