toJson method

Map<String, dynamic> toJson()

Implementation

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