Bucket.fromMap constructor
Implementation
factory Bucket.fromMap(Map<String, dynamic> map) {
return Bucket(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
$permissions: map['\$permissions'] ?? [],
fileSecurity: map['fileSecurity'],
name: map['name'].toString(),
enabled: map['enabled'],
maximumFileSize: map['maximumFileSize'],
allowedFileExtensions: map['allowedFileExtensions'] ?? [],
compression: map['compression'].toString(),
encryption: map['encryption'],
antivirus: map['antivirus'],
);
}