collection->map(function (BreederForGmap $breederData) { return $breederData->googleMapSerialize(); })->all(); } }