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

	out := NewAuthority()
	if o.ID != nil {
		out.ID = *o.ID
	}
	if o.Algorithm != nil {
		out.Algorithm = *o.Algorithm
	}
	if o.Certificate != nil {
		out.Certificate = *o.Certificate
	}
	if o.CommonName != nil {
		out.CommonName = *o.CommonName
	}
	if o.ExpirationDate != nil {
		out.ExpirationDate = *o.ExpirationDate
	}
	if o.Key != nil {
		out.Key = *o.Key
	}
	if o.MigrationsLog != nil {
		out.MigrationsLog = *o.MigrationsLog
	}
	if o.Organization != nil {
		out.Organization = *o.Organization
	}
	if o.SerialNumber != nil {
		out.SerialNumber = *o.SerialNumber
	}
	if o.Type != nil {
		out.Type = *o.Type
	}
	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 *SparseAuthority) ToPlain() elemental.PlainIdentifiable {
	out := NewAuthority()
	if o.ID != nil {
		out.ID = *o.ID
	}
	if o.Algorithm != nil {
		out.Algorithm = *o.Algorithm
	}
	if o.Certificate != nil {
		out.Certificate = *o.Certificate
	}
	if o.CommonName != nil {
		out.CommonName = *o.CommonName
	}
	if o.ExpirationDate != nil {
		out.ExpirationDate = *o.ExpirationDate
	}
	if o.Key != nil {
		out.Key = *o.Key
	}
	if o.MigrationsLog != nil {
		out.MigrationsLog = *o.MigrationsLog
	}
	if o.Organization != nil {
		out.Organization = *o.Organization
	}
	if o.SerialNumber != nil {
		out.SerialNumber = *o.SerialNumber
	}
	if o.Type != nil {
		out.Type = *o.Type
	}
	if o.ZHash != nil {
		out.ZHash = *o.ZHash
	}
	if o.Zone != nil {
		out.Zone = *o.Zone
	}
	return out
}
func ( o * SparseAuthority ) ToPlain ( ) elemental . PlainIdentifiable { out := NewAuthority ( ) if o . ID != nil { out . ID = * o . ID } if o . Algorithm != nil { out . Algorithm = * o . Algorithm } if o . Certificate != nil { out . Certificate = * o . Certificate } if o . CommonName != nil { out . CommonName = * o . CommonName } if o . ExpirationDate != nil { out . ExpirationDate = * o . ExpirationDate } if o . Key != nil { out . Key = * o . Key } if o . MigrationsLog != nil { out . MigrationsLog = * o . MigrationsLog } if o . Organization != nil { out . Organization = * o . Organization } if o . SerialNumber != nil { out . SerialNumber = * o . SerialNumber } if o . Type != nil { out . Type = * o . Type } 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 .