func (o MessagesList) ToSparse(fields ...string) elemental.Identifiables {

	out := make(SparseMessagesList, len(o))
	for i := 0; i < len(o); i++ {
		out[i] = o[i].ToSparse(fields...).(*SparseMessage)
	}

	return out
}
// ToSparse returns the MessagesList converted to SparseMessagesList.
// Objects in the list will only contain the given fields. No field means entire field set.
ToSparse returns the MessagesList converted to SparseMessagesList.
Objects in the list will only contain the given fields. No field means entire field set.
// ToSparse returns the MessagesList converted to SparseMessagesList . // Objects in the list will only contain the given fields . No field means entire field set .
func (o MessagesList) ToSparse(fields ...string) elemental.Identifiables {
	out := make(SparseMessagesList, len(o))
	for i := 0; i < len(o); i++ {
		out[i] = o[i].ToSparse(fields...).(*SparseMessage)
	}
	return out
}
func ( o MessagesList ) ToSparse ( fields ... string ) elemental . Identifiables { out := make ( SparseMessagesList , len ( o ) ) for i := 0 ; i < len ( o ) ; i ++ { out [ i ] = o [ i ] . ToSparse ( fields ... ) . ( * SparseMessage ) } return out }
ToSparse returns the MessagesList converted to SparseMessagesList.
ToSparse returns the MessagesList converted to SparseMessagesList .