toInterface static method

ConsentInterface toInterface(
  1. Consent consent
)

convert a Consent to a ConsentInterface

Implementation

static ConsentInterface toInterface(
  Consent consent,
) =>
    ConsentInterface(
      granted: consent.granted,
      date: consent.date.toIso8601String(),
      consentType: consent.consentType,
    );