copyWithWrapped method

Permissions copyWithWrapped({
  1. Wrapped<String?>? consentToken,
  2. Wrapped<Map<String, dynamic>?>? scopes,
})

Implementation

Permissions copyWithWrapped(
    {Wrapped<String?>? consentToken,
    Wrapped<Map<String, dynamic>?>? scopes}) {
  return Permissions(
      consentToken:
          (consentToken != null ? consentToken.value : this.consentToken),
      scopes: (scopes != null ? scopes.value : this.scopes));
}