toJson method
Implementation
Map<String, dynamic> toJson() {
final bucketKey = this.bucketKey;
final bucketName = this.bucketName;
return {
if (bucketKey != null) 'bucketKey': bucketKey,
if (bucketName != null) 'bucketName': bucketName,
};
}