ReplicaSettingsDescription.fromJson constructor
ReplicaSettingsDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ReplicaSettingsDescription.fromJson(Map<String, dynamic> json) {
return ReplicaSettingsDescription(
regionName: json['RegionName'] as String,
replicaBillingModeSummary: json['ReplicaBillingModeSummary'] != null
? BillingModeSummary.fromJson(
json['ReplicaBillingModeSummary'] as Map<String, dynamic>)
: null,
replicaGlobalSecondaryIndexSettings:
(json['ReplicaGlobalSecondaryIndexSettings'] as List?)
?.whereNotNull()
.map((e) =>
ReplicaGlobalSecondaryIndexSettingsDescription.fromJson(
e as Map<String, dynamic>))
.toList(),
replicaProvisionedReadCapacityAutoScalingSettings:
json['ReplicaProvisionedReadCapacityAutoScalingSettings'] != null
? AutoScalingSettingsDescription.fromJson(
json['ReplicaProvisionedReadCapacityAutoScalingSettings']
as Map<String, dynamic>)
: null,
replicaProvisionedReadCapacityUnits:
json['ReplicaProvisionedReadCapacityUnits'] as int?,
replicaProvisionedWriteCapacityAutoScalingSettings:
json['ReplicaProvisionedWriteCapacityAutoScalingSettings'] != null
? AutoScalingSettingsDescription.fromJson(
json['ReplicaProvisionedWriteCapacityAutoScalingSettings']
as Map<String, dynamic>)
: null,
replicaProvisionedWriteCapacityUnits:
json['ReplicaProvisionedWriteCapacityUnits'] as int?,
replicaStatus: (json['ReplicaStatus'] as String?)?.toReplicaStatus(),
);
}