encode<V> static method

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

Implementation

static V encode<V>(
  SessionAfterExpiration instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.recovery != null) {
    SessionRecovery.encode(
      instance.recovery!,
      container.nestedSingleValueContainer('recovery').encoder,
    );
  }
  return container.value;
}