encode<V> static method

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

Implementation

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