toJson method
Implementation
Map<String, dynamic> toJson() {
final hashKeyField = this.hashKeyField;
final hashKeyValue = this.hashKeyValue;
final tableName = this.tableName;
final hashKeyType = this.hashKeyType;
final operation = this.operation;
final payload = this.payload;
final payloadField = this.payloadField;
final rangeKeyField = this.rangeKeyField;
final rangeKeyType = this.rangeKeyType;
final rangeKeyValue = this.rangeKeyValue;
return {
'hashKeyField': hashKeyField,
'hashKeyValue': hashKeyValue,
'tableName': tableName,
if (hashKeyType != null) 'hashKeyType': hashKeyType,
if (operation != null) 'operation': operation,
if (payload != null) 'payload': payload,
if (payloadField != null) 'payloadField': payloadField,
if (rangeKeyField != null) 'rangeKeyField': rangeKeyField,
if (rangeKeyType != null) 'rangeKeyType': rangeKeyType,
if (rangeKeyValue != null) 'rangeKeyValue': rangeKeyValue,
};
}