AwsDynamoDbTableLocalSecondaryIndex.fromJson constructor

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

Implementation

factory AwsDynamoDbTableLocalSecondaryIndex.fromJson(
    Map<String, dynamic> json) {
  return AwsDynamoDbTableLocalSecondaryIndex(
    indexArn: json['IndexArn'] as String?,
    indexName: json['IndexName'] as String?,
    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,
  );
}