encode<V> static method
Implementation
static V encode<V>(
AuthorizationLodging instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.checkInAt != null) {
container.encodeDateTime(
'check_in_at',
instance.checkInAt!,
);
}
if (instance.nights != null) {
container.encodeInt(
'nights',
instance.nights!,
);
}
return container.value;
}