encode<V> static method

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

Implementation

static V encode<V>(
  PaymentIntentNextActionWechatPayRedirectToAndroidApp instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'app_id',
    instance.appId,
  );
  container.encodeString(
    'nonce_str',
    instance.nonceStr,
  );
  container.encodeString(
    'package',
    instance.package,
  );
  container.encodeString(
    'partner_id',
    instance.partnerId,
  );
  container.encodeString(
    'prepay_id',
    instance.prepayId,
  );
  container.encodeString(
    'sign',
    instance.sign,
  );
  container.encodeString(
    'timestamp',
    instance.timestamp,
  );
  return container.value;
}