toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final regionName = this.regionName;
  final replicaGlobalSecondaryIndexUpdates =
      this.replicaGlobalSecondaryIndexUpdates;
  final replicaProvisionedReadCapacityAutoScalingUpdate =
      this.replicaProvisionedReadCapacityAutoScalingUpdate;
  return {
    'RegionName': regionName,
    if (replicaGlobalSecondaryIndexUpdates != null)
      'ReplicaGlobalSecondaryIndexUpdates':
          replicaGlobalSecondaryIndexUpdates,
    if (replicaProvisionedReadCapacityAutoScalingUpdate != null)
      'ReplicaProvisionedReadCapacityAutoScalingUpdate':
          replicaProvisionedReadCapacityAutoScalingUpdate,
  };
}