encode<V> static method

Implementation

static V encode<V>(
  ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline
      instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.ipAddress != null) {
    container.encodeString(
      'ip_address',
      instance.ipAddress!,
    );
  }
  if (instance.userAgent != null) {
    container.encodeString(
      'user_agent',
      instance.userAgent!,
    );
  }
  return container.value;
}