encode<V> static method

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

Implementation

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