toInterface static method
convert a Consent to a ConsentInterface
Implementation
static ConsentInterface toInterface(
Consent consent,
) =>
ConsentInterface(
granted: consent.granted,
date: consent.date.toIso8601String(),
consentType: consent.consentType,
);