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

	out := NewPolicy()
	if o.ID != nil {
		out.ID = *o.ID
	}
	if o.Action != nil {
		out.Action = *o.Action
	}
	if o.ActiveDuration != nil {
		out.ActiveDuration = *o.ActiveDuration
	}
	if o.ActiveSchedule != nil {
		out.ActiveSchedule = *o.ActiveSchedule
	}
	if o.AllObjectTags != nil {
		out.AllObjectTags = *o.AllObjectTags
	}
	if o.AllSubjectTags != nil {
		out.AllSubjectTags = *o.AllSubjectTags
	}
	if o.Annotations != nil {
		out.Annotations = *o.Annotations
	}
	if o.AssociatedTags != nil {
		out.AssociatedTags = *o.AssociatedTags
	}
	if o.CreateIdempotencyKey != nil {
		out.CreateIdempotencyKey = *o.CreateIdempotencyKey
	}
	if o.CreateTime != nil {
		out.CreateTime = *o.CreateTime
	}
	if o.Description != nil {
		out.Description = *o.Description
	}
	if o.Disabled != nil {
		out.Disabled = *o.Disabled
	}
	if o.ExpirationTime != nil {
		out.ExpirationTime = *o.ExpirationTime
	}
	if o.Fallback != nil {
		out.Fallback = *o.Fallback
	}
	if o.Metadata != nil {
		out.Metadata = *o.Metadata
	}
	if o.MigrationsLog != nil {
		out.MigrationsLog = *o.MigrationsLog
	}
	if o.Name != nil {
		out.Name = *o.Name
	}
	if o.Namespace != nil {
		out.Namespace = *o.Namespace
	}
	if o.NormalizedTags != nil {
		out.NormalizedTags = *o.NormalizedTags
	}
	if o.Object != nil {
		out.Object = *o.Object
	}
	if o.Propagate != nil {
		out.Propagate = *o.Propagate
	}
	if o.PropagationHidden != nil {
		out.PropagationHidden = *o.PropagationHidden
	}
	if o.Protected != nil {
		out.Protected = *o.Protected
	}
	if o.Relation != nil {
		out.Relation = *o.Relation
	}
	if o.Subject != nil {
		out.Subject = *o.Subject
	}
	if o.Type != nil {
		out.Type = *o.Type
	}
	if o.UpdateIdempotencyKey != nil {
		out.UpdateIdempotencyKey = *o.UpdateIdempotencyKey
	}
	if o.UpdateTime != nil {
		out.UpdateTime = *o.UpdateTime
	}
	if o.ZHash != nil {
		out.ZHash = *o.ZHash
	}
	if o.Zone != nil {
		out.Zone = *o.Zone
	}

	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 *SparsePolicy) ToPlain() elemental.PlainIdentifiable {
	out := NewPolicy()
	if o.ID != nil {
		out.ID = *o.ID
	}
	if o.Action != nil {
		out.Action = *o.Action
	}
	if o.ActiveDuration != nil {
		out.ActiveDuration = *o.ActiveDuration
	}
	if o.ActiveSchedule != nil {
		out.ActiveSchedule = *o.ActiveSchedule
	}
	if o.AllObjectTags != nil {
		out.AllObjectTags = *o.AllObjectTags
	}
	if o.AllSubjectTags != nil {
		out.AllSubjectTags = *o.AllSubjectTags
	}
	if o.Annotations != nil {
		out.Annotations = *o.Annotations
	}
	if o.AssociatedTags != nil {
		out.AssociatedTags = *o.AssociatedTags
	}
	if o.CreateIdempotencyKey != nil {
		out.CreateIdempotencyKey = *o.CreateIdempotencyKey
	}
	if o.CreateTime != nil {
		out.CreateTime = *o.CreateTime
	}
	if o.Description != nil {
		out.Description = *o.Description
	}
	if o.Disabled != nil {
		out.Disabled = *o.Disabled
	}
	if o.ExpirationTime != nil {
		out.ExpirationTime = *o.ExpirationTime
	}
	if o.Fallback != nil {
		out.Fallback = *o.Fallback
	}
	if o.Metadata != nil {
		out.Metadata = *o.Metadata
	}
	if o.MigrationsLog != nil {
		out.MigrationsLog = *o.MigrationsLog
	}
	if o.Name != nil {
		out.Name = *o.Name
	}
	if o.Namespace != nil {
		out.Namespace = *o.Namespace
	}
	if o.NormalizedTags != nil {
		out.NormalizedTags = *o.NormalizedTags
	}
	if o.Object != nil {
		out.Object = *o.Object
	}
	if o.Propagate != nil {
		out.Propagate = *o.Propagate
	}
	if o.PropagationHidden != nil {
		out.PropagationHidden = *o.PropagationHidden
	}
	if o.Protected != nil {
		out.Protected = *o.Protected
	}
	if o.Relation != nil {
		out.Relation = *o.Relation
	}
	if o.Subject != nil {
		out.Subject = *o.Subject
	}
	if o.Type != nil {
		out.Type = *o.Type
	}
	if o.UpdateIdempotencyKey != nil {
		out.UpdateIdempotencyKey = *o.UpdateIdempotencyKey
	}
	if o.UpdateTime != nil {
		out.UpdateTime = *o.UpdateTime
	}
	if o.ZHash != nil {
		out.ZHash = *o.ZHash
	}
	if o.Zone != nil {
		out.Zone = *o.Zone
	}
	return out
}
func ( o * SparsePolicy ) ToPlain ( ) elemental . PlainIdentifiable { out := NewPolicy ( ) if o . ID != nil { out . ID = * o . ID } if o . Action != nil { out . Action = * o . Action } if o . ActiveDuration != nil { out . ActiveDuration = * o . ActiveDuration } if o . ActiveSchedule != nil { out . ActiveSchedule = * o . ActiveSchedule } if o . AllObjectTags != nil { out . AllObjectTags = * o . AllObjectTags } if o . AllSubjectTags != nil { out . AllSubjectTags = * o . AllSubjectTags } if o . Annotations != nil { out . Annotations = * o . Annotations } if o . AssociatedTags != nil { out . AssociatedTags = * o . AssociatedTags } if o . CreateIdempotencyKey != nil { out . CreateIdempotencyKey = * o . CreateIdempotencyKey } if o . CreateTime != nil { out . CreateTime = * o . CreateTime } if o . Description != nil { out . Description = * o . Description } if o . Disabled != nil { out . Disabled = * o . Disabled } if o . ExpirationTime != nil { out . ExpirationTime = * o . ExpirationTime } if o . Fallback != nil { out . Fallback = * o . Fallback } if o . Metadata != nil { out . Metadata = * o . Metadata } if o . MigrationsLog != nil { out . MigrationsLog = * o . MigrationsLog } if o . Name != nil { out . Name = * o . Name } if o . Namespace != nil { out . Namespace = * o . Namespace } if o . NormalizedTags != nil { out . NormalizedTags = * o . NormalizedTags } if o . Object != nil { out . Object = * o . Object } if o . Propagate != nil { out . Propagate = * o . Propagate } if o . PropagationHidden != nil { out . PropagationHidden = * o . PropagationHidden } if o . Protected != nil { out . Protected = * o . Protected } if o . Relation != nil { out . Relation = * o . Relation } if o . Subject != nil { out . Subject = * o . Subject } if o . Type != nil { out . Type = * o . Type } if o . UpdateIdempotencyKey != nil { out . UpdateIdempotencyKey = * o . UpdateIdempotencyKey } if o . UpdateTime != nil { out . UpdateTime = * o . UpdateTime } if o . ZHash != nil { out . ZHash = * o . ZHash } if o . Zone != nil { out . Zone = * o . Zone } return out }
ToPlain returns the plain version of the sparse model.
ToPlain returns the plain version of the sparse model .