encode<V> static method

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

Implementation

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