encode<V> static method

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

Implementation

static V encode<V>(
  BillingMeterEventSummary instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeDouble(
    'aggregated_value',
    instance.aggregatedValue,
  );
  container.encodeDateTime(
    'end_time',
    instance.endTime,
  );
  container.encodeString(
    'id',
    instance.id,
  );
  container.encodeBool(
    'livemode',
    instance.livemode,
  );
  container.encodeString(
    'meter',
    instance.meter,
  );
  container.encodeString(
    'object',
    'billing.meter_event_summary',
  );
  container.encodeDateTime(
    'start_time',
    instance.startTime,
  );
  return container.value;
}