updatePayload method

  1. @override
SubmitServiceEvent updatePayload(
  1. SubmitServiceEvent originalPayload,
  2. String newValue
)
override

Implement in subclasses to update the payload with the new value.

Implementation

@override
SubmitServiceEvent updatePayload(
  SubmitServiceEvent originalPayload,
  String newValue,
) {
  final updatedPayload = originalPayload.deepCopy();
  updatedPayload.event.addServiceAdmin.alias = newValue;
  return updatedPayload;
}