toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final item = this.item;
  final tableName = this.tableName;
  final conditionExpression = this.conditionExpression;
  final expressionAttributeNames = this.expressionAttributeNames;
  final expressionAttributeValues = this.expressionAttributeValues;
  final returnValuesOnConditionCheckFailure =
      this.returnValuesOnConditionCheckFailure;
  return {
    'Item': item,
    'TableName': tableName,
    if (conditionExpression != null)
      'ConditionExpression': conditionExpression,
    if (expressionAttributeNames != null)
      'ExpressionAttributeNames': expressionAttributeNames,
    if (expressionAttributeValues != null)
      'ExpressionAttributeValues': expressionAttributeValues,
    if (returnValuesOnConditionCheckFailure != null)
      'ReturnValuesOnConditionCheckFailure':
          returnValuesOnConditionCheckFailure.toValue(),
  };
}