toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final indexName = this.indexName;
  final keySchema = this.keySchema;
  final projection = this.projection;
  final provisionedThroughput = this.provisionedThroughput;
  return {
    'IndexName': indexName,
    'KeySchema': keySchema,
    'Projection': projection,
    if (provisionedThroughput != null)
      'ProvisionedThroughput': provisionedThroughput,
  };
}