encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentNextActionKonbiniStores instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.familymart != null) {
    PaymentIntentNextActionKonbiniSeicomart.encode(
      instance.familymart!,
      container.nestedSingleValueContainer('familymart').encoder,
    );
  }
  if (instance.lawson != null) {
    PaymentIntentNextActionKonbiniSeicomart.encode(
      instance.lawson!,
      container.nestedSingleValueContainer('lawson').encoder,
    );
  }
  if (instance.ministop != null) {
    PaymentIntentNextActionKonbiniSeicomart.encode(
      instance.ministop!,
      container.nestedSingleValueContainer('ministop').encoder,
    );
  }
  if (instance.seicomart != null) {
    PaymentIntentNextActionKonbiniSeicomart.encode(
      instance.seicomart!,
      container.nestedSingleValueContainer('seicomart').encoder,
    );
  }
  return container.value;
}