encode<V> static method
Implementation
static V encode<V>(
SessionAfterCompletion instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.hostedConfirmation != null) {
SessionHostedConfirmation.encode(
instance.hostedConfirmation!,
container.nestedSingleValueContainer('hosted_confirmation').encoder,
);
}
if (instance.redirect != null) {
PortalFlowsAfterCompletionRedirect.encode(
instance.redirect!,
container.nestedSingleValueContainer('redirect').encoder,
);
}
PortalFlowsFlowAfterCompletionType.encode(
instance.type,
container.nestedSingleValueContainer('type').encoder,
);
return container.value;
}