S3BucketDetail.fromJson constructor
S3BucketDetail.fromJson(
- Map<String, dynamic> json
)
Implementation
factory S3BucketDetail.fromJson(Map<String, dynamic> json) {
return S3BucketDetail(
arn: json['arn'] as String?,
createdAt: timeStampFromJson(json['createdAt']),
defaultServerSideEncryption: json['defaultServerSideEncryption'] != null
? DefaultServerSideEncryption.fromJson(
json['defaultServerSideEncryption'] as Map<String, dynamic>)
: null,
name: json['name'] as String?,
owner: json['owner'] != null
? Owner.fromJson(json['owner'] as Map<String, dynamic>)
: null,
publicAccess: json['publicAccess'] != null
? PublicAccess.fromJson(json['publicAccess'] as Map<String, dynamic>)
: null,
tags: (json['tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
type: json['type'] as String?,
);
}