encode<V> static method

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

Implementation

static V encode<V>(
  AccountRequirementsError instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'code',
    instance.code,
  );
  container.encodeString(
    'reason',
    instance.reason,
  );
  container.encodeString(
    'requirement',
    instance.requirement,
  );
  return container.value;
}