encode<V> static method

V encode<V>(
  1. PortalFlowsAfterCompletionHostedConfirmation instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  PortalFlowsAfterCompletionHostedConfirmation instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.customMessage != null) {
    container.encodeString(
      'custom_message',
      instance.customMessage!,
    );
  }
  return container.value;
}