toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final indexName = this.indexName;
  final provisionedReadCapacityAutoScalingSettingsUpdate =
      this.provisionedReadCapacityAutoScalingSettingsUpdate;
  final provisionedReadCapacityUnits = this.provisionedReadCapacityUnits;
  return {
    'IndexName': indexName,
    if (provisionedReadCapacityAutoScalingSettingsUpdate != null)
      'ProvisionedReadCapacityAutoScalingSettingsUpdate':
          provisionedReadCapacityAutoScalingSettingsUpdate,
    if (provisionedReadCapacityUnits != null)
      'ProvisionedReadCapacityUnits': provisionedReadCapacityUnits,
  };
}