LocalSecondaryIndexDescription.fromJson constructor

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

Implementation

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