toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final keys = this.keys;
  final attributesToGet = this.attributesToGet;
  final consistentRead = this.consistentRead;
  final expressionAttributeNames = this.expressionAttributeNames;
  final projectionExpression = this.projectionExpression;
  return {
    'Keys': keys,
    if (attributesToGet != null) 'AttributesToGet': attributesToGet,
    if (consistentRead != null) 'ConsistentRead': consistentRead,
    if (expressionAttributeNames != null)
      'ExpressionAttributeNames': expressionAttributeNames,
    if (projectionExpression != null)
      'ProjectionExpression': projectionExpression,
  };
}