GlobalSecondaryIndexInfo.fromJson constructor
GlobalSecondaryIndexInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GlobalSecondaryIndexInfo.fromJson(Map<String, dynamic> json) {
return GlobalSecondaryIndexInfo(
indexName: json['IndexName'] as String?,
keySchema: (json['KeySchema'] as List?)
?.whereNotNull()
.map((e) => KeySchemaElement.fromJson(e as Map<String, dynamic>))
.toList(),
projection: json['Projection'] != null
? Projection.fromJson(json['Projection'] as Map<String, dynamic>)
: null,
provisionedThroughput: json['ProvisionedThroughput'] != null
? ProvisionedThroughput.fromJson(
json['ProvisionedThroughput'] as Map<String, dynamic>)
: null,
);
}