encode<V> static method
V
encode<V>(
- ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceOnline instance,
- Encoder<
V> encoder
Implementation
static V encode<V>(
ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceOnline
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;
}