encode<V> static method

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

Implementation

static V encode<V>(
  InvoiceitemPlanTransformUsage instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'divide_by',
    instance.divideBy,
  );
  container.encodeString(
    'round',
    instance.round,
  );
  return container.value;
}