DescribeIndexResponse.fromJson constructor
DescribeIndexResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeIndexResponse.fromJson(Map<String, dynamic> json) {
return DescribeIndexResponse(
capacityUnits: json['CapacityUnits'] != null
? CapacityUnitsConfiguration.fromJson(
json['CapacityUnits'] as Map<String, dynamic>)
: null,
createdAt: timeStampFromJson(json['CreatedAt']),
description: json['Description'] as String?,
documentMetadataConfigurations: (json['DocumentMetadataConfigurations']
as List?)
?.whereNotNull()
.map((e) =>
DocumentMetadataConfiguration.fromJson(e as Map<String, dynamic>))
.toList(),
edition: (json['Edition'] as String?)?.toIndexEdition(),
errorMessage: json['ErrorMessage'] as String?,
id: json['Id'] as String?,
indexStatistics: json['IndexStatistics'] != null
? IndexStatistics.fromJson(
json['IndexStatistics'] as Map<String, dynamic>)
: null,
name: json['Name'] as String?,
roleArn: json['RoleArn'] as String?,
serverSideEncryptionConfiguration:
json['ServerSideEncryptionConfiguration'] != null
? ServerSideEncryptionConfiguration.fromJson(
json['ServerSideEncryptionConfiguration']
as Map<String, dynamic>)
: null,
status: (json['Status'] as String?)?.toIndexStatus(),
updatedAt: timeStampFromJson(json['UpdatedAt']),
userContextPolicy:
(json['UserContextPolicy'] as String?)?.toUserContextPolicy(),
userTokenConfigurations: (json['UserTokenConfigurations'] as List?)
?.whereNotNull()
.map(
(e) => UserTokenConfiguration.fromJson(e as Map<String, dynamic>))
.toList(),
);
}