encode<V> static method
Implementation
static V encode<V>(
Period instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.end != null) {
container.encodeDateTime(
'end',
instance.end!,
);
}
if (instance.start != null) {
container.encodeDateTime(
'start',
instance.start!,
);
}
return container.value;
}