encode<V> static method

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

Implementation

static V encode<V>(
  AccountRequirementsAlternative instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeList(
    'alternative_fields_due',
    (container) => instance.alternativeFieldsDue
        .forEach((el) => container.encodeString(el)),
  );
  container.encodeList(
    'original_fields_due',
    (container) => instance.originalFieldsDue
        .forEach((el) => container.encodeString(el)),
  );
  return container.value;
}