DescribeLocationS3Response.fromJson constructor

DescribeLocationS3Response.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DescribeLocationS3Response.fromJson(Map<String, dynamic> json) {
  return DescribeLocationS3Response(
    agentArns: (json['AgentArns'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    creationTime: timeStampFromJson(json['CreationTime']),
    locationArn: json['LocationArn'] as String?,
    locationUri: json['LocationUri'] as String?,
    s3Config: json['S3Config'] != null
        ? S3Config.fromJson(json['S3Config'] as Map<String, dynamic>)
        : null,
    s3StorageClass: (json['S3StorageClass'] as String?)?.toS3StorageClass(),
  );
}