GetBucketObjectResult.fromMap constructor
GetBucketObjectResult.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetBucketObjectResult.fromMap(Map<String, dynamic> map) {
return GetBucketObjectResult(
acl: pulumi.Input.decodeList<ObjectAccessControlResponse>(map['acl']!, (value) => ObjectAccessControlResponse.fromMap((value as Map).cast<String, dynamic>())),
bucket: map['bucket'] as String,
cacheControl: map['cacheControl'] as String,
componentCount: map['componentCount'] as int,
contentDisposition: map['contentDisposition'] as String,
contentEncoding: map['contentEncoding'] as String,
contentLanguage: map['contentLanguage'] as String,
contentType: map['contentType'] as String,
crc32c: map['crc32c'] as String,
customTime: map['customTime'] as String,
customerEncryption: BucketObjectCustomerEncryptionResponse.fromMap((map['customerEncryption']! as Map).cast<String, dynamic>()),
etag: map['etag'] as String,
eventBasedHold: map['eventBasedHold'] as bool,
generation: map['generation'] as String,
hardDeleteTime: map['hardDeleteTime'] as String,
kind: map['kind'] as String,
kmsKeyName: map['kmsKeyName'] as String,
md5Hash: map['md5Hash'] as String,
mediaLink: map['mediaLink'] as String,
metadata: (map['metadata'] as Map).cast<String, String>(),
metageneration: map['metageneration'] as String,
name: map['name'] as String,
owner: BucketObjectOwnerResponse.fromMap((map['owner']! as Map).cast<String, dynamic>()),
retention: BucketObjectRetentionResponse.fromMap((map['retention']! as Map).cast<String, dynamic>()),
retentionExpirationTime: map['retentionExpirationTime'] as String,
selfLink: map['selfLink'] as String,
size: map['size'] as String,
softDeleteTime: map['softDeleteTime'] as String,
storageClass: map['storageClass'] as String,
temporaryHold: map['temporaryHold'] as bool,
timeCreated: map['timeCreated'] as String,
timeDeleted: map['timeDeleted'] as String,
timeStorageClassUpdated: map['timeStorageClassUpdated'] as String,
updated: map['updated'] as String,
);
}