toJson method
Converts this BucketFile instance to a JSON object.
Returns
A Map containing the file data in JSON format
Implementation
Map<String, dynamic> toJson() {
return {
'id': id,
'key': key,
'description': description,
'tags': tags,
'bucketId': bucketId,
'type': type,
'size': size,
'createdAt': createdAt.toIso8601String(),
};
}