LocalSecondaryIndexInfo.fromJson constructor

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

Implementation

factory LocalSecondaryIndexInfo.fromJson(Map<String, dynamic> json) {
  return LocalSecondaryIndexInfo(
    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,
  );
}