encode<V> static method

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

Implementation

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