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