AwsDynamoDbTableGlobalSecondaryIndex.fromJson constructor
AwsDynamoDbTableGlobalSecondaryIndex.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AwsDynamoDbTableGlobalSecondaryIndex.fromJson(
Map<String, dynamic> json) {
return AwsDynamoDbTableGlobalSecondaryIndex(
backfilling: json['Backfilling'] as bool?,
indexArn: json['IndexArn'] as String?,
indexName: json['IndexName'] as String?,
indexSizeBytes: json['IndexSizeBytes'] as int?,
indexStatus: json['IndexStatus'] as String?,
itemCount: json['ItemCount'] as int?,
keySchema: (json['KeySchema'] as List?)
?.whereNotNull()
.map((e) =>
AwsDynamoDbTableKeySchema.fromJson(e as Map<String, dynamic>))
.toList(),
projection: json['Projection'] != null
? AwsDynamoDbTableProjection.fromJson(
json['Projection'] as Map<String, dynamic>)
: null,
provisionedThroughput: json['ProvisionedThroughput'] != null
? AwsDynamoDbTableProvisionedThroughput.fromJson(
json['ProvisionedThroughput'] as Map<String, dynamic>)
: null,
);
}