ReplicaAutoScalingDescription.fromJson constructor

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

Implementation

factory ReplicaAutoScalingDescription.fromJson(Map<String, dynamic> json) {
  return ReplicaAutoScalingDescription(
    globalSecondaryIndexes: (json['GlobalSecondaryIndexes'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ReplicaGlobalSecondaryIndexAutoScalingDescription.fromJson(
                e as Map<String, dynamic>))
        .toList(),
    regionName: json['RegionName'] as String?,
    replicaProvisionedReadCapacityAutoScalingSettings:
        json['ReplicaProvisionedReadCapacityAutoScalingSettings'] != null
            ? AutoScalingSettingsDescription.fromJson(
                json['ReplicaProvisionedReadCapacityAutoScalingSettings']
                    as Map<String, dynamic>)
            : null,
    replicaProvisionedWriteCapacityAutoScalingSettings:
        json['ReplicaProvisionedWriteCapacityAutoScalingSettings'] != null
            ? AutoScalingSettingsDescription.fromJson(
                json['ReplicaProvisionedWriteCapacityAutoScalingSettings']
                    as Map<String, dynamic>)
            : null,
    replicaStatus: (json['ReplicaStatus'] as String?)?.toReplicaStatus(),
  );
}