code method
Implementation
String code(List<String> getters) {
var fieldsArr = "[${fields.map((e) => e.code).join(", ")}]";
var dataclassInsert =
conformity == StructureConformity.dataclass ? (", _hash, _equals") : "";
var proxyDef =
"$genAlias.ObjectFactoryStructureProxy<$type>(_activator, [${getters.join(", ")}], _values$dataclassInsert)";
return "$genAlias.DogStructure<$type>('$serialName', $genAlias.$conformity, $fieldsArr, $metadataSource, $proxyDef)";
}