func (o *SparseAuthz) ToPlain() elemental.PlainIdentifiable {

	out := NewAuthz()
	if o.Claims != nil {
		out.Claims = *o.Claims
	}
	if o.ClientIP != nil {
		out.ClientIP = *o.ClientIP
	}
	if o.Error != nil {
		out.Error = *o.Error
	}
	if o.Permissions != nil {
		out.Permissions = *o.Permissions
	}
	if o.PolicyRulesList != nil {
		out.PolicyRulesList = *o.PolicyRulesList
	}
	if o.RestrictedNamespace != nil {
		out.RestrictedNamespace = *o.RestrictedNamespace
	}
	if o.RestrictedNetworks != nil {
		out.RestrictedNetworks = *o.RestrictedNetworks
	}
	if o.RestrictedPermissions != nil {
		out.RestrictedPermissions = *o.RestrictedPermissions
	}
	if o.TargetID != nil {
		out.TargetID = *o.TargetID
	}
	if o.TargetNamespace != nil {
		out.TargetNamespace = *o.TargetNamespace
	}

	return out
}
// ToPlain returns the plain version of the sparse model.
ToPlain returns the plain version of the sparse model.
// ToPlain returns the plain version of the sparse model .
func (o *SparseAuthz) ToPlain() elemental.PlainIdentifiable {
	out := NewAuthz()
	if o.Claims != nil {
		out.Claims = *o.Claims
	}
	if o.ClientIP != nil {
		out.ClientIP = *o.ClientIP
	}
	if o.Error != nil {
		out.Error = *o.Error
	}
	if o.Permissions != nil {
		out.Permissions = *o.Permissions
	}
	if o.PolicyRulesList != nil {
		out.PolicyRulesList = *o.PolicyRulesList
	}
	if o.RestrictedNamespace != nil {
		out.RestrictedNamespace = *o.RestrictedNamespace
	}
	if o.RestrictedNetworks != nil {
		out.RestrictedNetworks = *o.RestrictedNetworks
	}
	if o.RestrictedPermissions != nil {
		out.RestrictedPermissions = *o.RestrictedPermissions
	}
	if o.TargetID != nil {
		out.TargetID = *o.TargetID
	}
	if o.TargetNamespace != nil {
		out.TargetNamespace = *o.TargetNamespace
	}
	return out
}
func ( o * SparseAuthz ) ToPlain ( ) elemental . PlainIdentifiable { out := NewAuthz ( ) if o . Claims != nil { out . Claims = * o . Claims } if o . ClientIP != nil { out . ClientIP = * o . ClientIP } if o . Error != nil { out . Error = * o . Error } if o . Permissions != nil { out . Permissions = * o . Permissions } if o . PolicyRulesList != nil { out . PolicyRulesList = * o . PolicyRulesList } if o . RestrictedNamespace != nil { out . RestrictedNamespace = * o . RestrictedNamespace } if o . RestrictedNetworks != nil { out . RestrictedNetworks = * o . RestrictedNetworks } if o . RestrictedPermissions != nil { out . RestrictedPermissions = * o . RestrictedPermissions } if o . TargetID != nil { out . TargetID = * o . TargetID } if o . TargetNamespace != nil { out . TargetNamespace = * o . TargetNamespace } return out }
ToPlain returns the plain version of the sparse model.
ToPlain returns the plain version of the sparse model .