copyWith method

PermissionCheckResponse copyWith({
  1. bool? hasPermission,
  2. List<Message>? errors,
  3. GenericLinks? links,
})

Implementation

PermissionCheckResponse copyWith(
    {bool? hasPermission, List<Message>? errors, GenericLinks? links}) {
  return PermissionCheckResponse(
    hasPermission: hasPermission ?? this.hasPermission,
    errors: errors ?? this.errors,
    links: links ?? this.links,
  );
}