encode<V> static method

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

Implementation

static V encode<V>(
  BillingMeterResourceBillingMeterStatusTransitions instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.deactivatedAt != null) {
    container.encodeDateTime(
      'deactivated_at',
      instance.deactivatedAt!,
    );
  }
  return container.value;
}