encode<V> static method

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

Implementation

static V encode<V>(
  SourceCodeVerificationFlow instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeInt(
    'attempts_remaining',
    instance.attemptsRemaining,
  );
  container.encodeString(
    'status',
    instance.status,
  );
  return container.value;
}