encode<V> static method
Implementation
static V encode<V>(
SubscriptionBillingCycleAnchorConfig instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeInt(
'day_of_month',
instance.dayOfMonth,
);
if (instance.hour != null) {
container.encodeInt(
'hour',
instance.hour!,
);
}
if (instance.minute != null) {
container.encodeInt(
'minute',
instance.minute!,
);
}
if (instance.month != null) {
container.encodeInt(
'month',
instance.month!,
);
}
if (instance.second != null) {
container.encodeInt(
'second',
instance.second!,
);
}
return container.value;
}