toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bucket = this.bucket;
  final permissions = this.permissions;
  final storageClass = this.storageClass;
  return {
    if (bucket != null) 'Bucket': bucket,
    if (permissions != null) 'Permissions': permissions,
    if (storageClass != null) 'StorageClass': storageClass,
  };
}