encode<V> static method
Implementation
static V encode<V>(
IssuingCardholderUserTermsAcceptance instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.date != null) {
container.encodeDateTime(
'date',
instance.date!,
);
}
if (instance.ip != null) {
container.encodeString(
'ip',
instance.ip!,
);
}
if (instance.userAgent != null) {
container.encodeString(
'user_agent',
instance.userAgent!,
);
}
return container.value;
}