Map<String, dynamic> toMap() { return <String, dynamic>{ 'bucket': bucket, 'key': key, 'objectVersion': ?objectVersion, 'roleArn': roleArn, }; }