encode<V> static method

V encode<V>(
  1. SubscriptionScheduleCurrentPhase instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  SubscriptionScheduleCurrentPhase instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeDateTime(
    'end_date',
    instance.endDate,
  );
  container.encodeDateTime(
    'start_date',
    instance.startDate,
  );
  return container.value;
}