ReplicaGlobalSecondaryIndexSettingsDescription.fromJson constructor

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

Implementation

factory ReplicaGlobalSecondaryIndexSettingsDescription.fromJson(
    Map<String, dynamic> json) {
  return ReplicaGlobalSecondaryIndexSettingsDescription(
    indexName: json['IndexName'] as String,
    indexStatus: (json['IndexStatus'] as String?)?.toIndexStatus(),
    provisionedReadCapacityAutoScalingSettings:
        json['ProvisionedReadCapacityAutoScalingSettings'] != null
            ? AutoScalingSettingsDescription.fromJson(
                json['ProvisionedReadCapacityAutoScalingSettings']
                    as Map<String, dynamic>)
            : null,
    provisionedReadCapacityUnits:
        json['ProvisionedReadCapacityUnits'] as int?,
    provisionedWriteCapacityAutoScalingSettings:
        json['ProvisionedWriteCapacityAutoScalingSettings'] != null
            ? AutoScalingSettingsDescription.fromJson(
                json['ProvisionedWriteCapacityAutoScalingSettings']
                    as Map<String, dynamic>)
            : null,
    provisionedWriteCapacityUnits:
        json['ProvisionedWriteCapacityUnits'] as int?,
  );
}