toJson method

Map<String, dynamic> toJson()

Implementation

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