toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final indexName = this.indexName;
  final provisionedWriteCapacityAutoScalingSettingsUpdate =
      this.provisionedWriteCapacityAutoScalingSettingsUpdate;
  final provisionedWriteCapacityUnits = this.provisionedWriteCapacityUnits;
  return {
    'IndexName': indexName,
    if (provisionedWriteCapacityAutoScalingSettingsUpdate != null)
      'ProvisionedWriteCapacityAutoScalingSettingsUpdate':
          provisionedWriteCapacityAutoScalingSettingsUpdate,
    if (provisionedWriteCapacityUnits != null)
      'ProvisionedWriteCapacityUnits': provisionedWriteCapacityUnits,
  };
}