encode<V> static method
Implementation
static V encode<V>(
EventRequest instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.id != null) {
container.encodeString(
'id',
instance.id!,
);
}
if (instance.idempotencyKey != null) {
container.encodeString(
'idempotency_key',
instance.idempotencyKey!,
);
}
return container.value;
}