toJson method

Map<String, dynamic> toJson()

Implementation

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