encode<V> static method

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

Implementation

static V encode<V>(
  AccountDob instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'day',
    instance.day,
  );
  container.encodeInt(
    'month',
    instance.month,
  );
  container.encodeInt(
    'year',
    instance.year,
  );
  return container.value;
}