fromInterface static method

Consent fromInterface(
  1. ConsentInterface consentInterface
)

convert a ConsentInterface to a Consent

Implementation

static Consent fromInterface(
  ConsentInterface consentInterface,
) =>
    Consent(
      granted: consentInterface.granted,
      date: DateTime.parse(consentInterface.date),
      consentType: consentInterface.consentType,
    );