CacaoPayload.fromRequestPayload constructor

CacaoPayload.fromRequestPayload({
  1. required String issuer,
  2. required CacaoRequestPayload payload,
})

Implementation

factory CacaoPayload.fromRequestPayload({
  required String issuer,
  required CacaoRequestPayload payload,
}) {
  return CacaoPayload(
    iss: issuer,
    domain: payload.domain,
    aud: payload.aud,
    version: payload.version,
    nonce: payload.nonce,
    iat: payload.iat,
    nbf: payload.nbf,
    exp: payload.exp,
    statement: payload.statement,
    requestId: payload.requestId,
    resources: payload.resources,
  );
}