encode<V> static method

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

Implementation

static V encode<V>(
  IssuingTransactionPurchaseDetailsLodging instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.checkInAt != null) {
    container.encodeInt(
      'check_in_at',
      instance.checkInAt!,
    );
  }
  if (instance.nights != null) {
    container.encodeInt(
      'nights',
      instance.nights!,
    );
  }
  return container.value;
}