toJson method

Map<String, dynamic> toJson()

Implementation

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