fromInterface static method
convert a ConsentInterface
to a Consent
Implementation
static Consent fromInterface(
ConsentInterface consentInterface,
) =>
Consent(
granted: consentInterface.granted,
date: DateTime.parse(consentInterface.date),
consentType: consentInterface.consentType,
);