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