encode<V> static method

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

Implementation

static V encode<V>(
  DisputeEvidenceDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.dueBy != null) {
    container.encodeDateTime(
      'due_by',
      instance.dueBy!,
    );
  }
  container.encodeBool(
    'has_evidence',
    instance.hasEvidence,
  );
  container.encodeBool(
    'past_due',
    instance.pastDue,
  );
  container.encodeInt(
    'submission_count',
    instance.submissionCount,
  );
  return container.value;
}