The object EmbeddedK3surface is a type, with ancestor classes EmbeddedProjectiveVariety < MultiprojectiveVariety < MutableHashTable < HashTable < Thing.
The source of this document is in /__w/M2/M2/macaulay2-1.26.05+ds/M2/Macaulay2/packages/K3Surfaces.m2:869:0.