preparePayload method
Prepares and returns a payload map from the provided dependencies to be sent
along with a ServerAction execution.
Implementations should extract necessary values from each ActionDependency
and build a serializable Map<String, dynamic> that represents the required
input data for the action, suitable for sending to an API or other handler.
This is typically used to resolve local values, form state, or referenced data, ensuring that all conditions required by the action are met.
Throws MissingCapabilityMethodImplementation by default if not overridden.
Implementation
@mustBeOverridden
Map<String, dynamic> preparePayload(
Iterable<ActionDependency> dependencies,
) =>
throw const MissingCapabilityMethodImplementation(
"preparePayload",
"ServerActionExecutionCapabilityDelegate",
);