GlobalSecondaryIndexDescription.fromJson constructor

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

Implementation

factory GlobalSecondaryIndexDescription.fromJson(Map<String, dynamic> json) {
  return GlobalSecondaryIndexDescription(
    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?)?.toIndexStatus(),
    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,
    provisionedThroughput: json['ProvisionedThroughput'] != null
        ? ProvisionedThroughputDescription.fromJson(
            json['ProvisionedThroughput'] as Map<String, dynamic>)
        : null,
  );
}