serialize method
Implementation
@override
void serialize(Serializer serializer) {
serializer.serializeStr(name);
typeTag.serialize(serializer);
}
@override
void serialize(Serializer serializer) {
serializer.serializeStr(name);
typeTag.serialize(serializer);
}