encode<V> static method

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

Implementation

static V encode<V>(
  PaymentMethodConfigBizPaymentMethodConfigurationDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'id',
    instance.id,
  );
  if (instance.parent != null) {
    container.encodeString(
      'parent',
      instance.parent!,
    );
  }
  return container.value;
}