The Triassic saw the first of this lactating type of animal, evolving from creatures called synapsids
... choanoflagellates: 
single-celled creatures that sometimes form colonies consisting of many 
individuals.