visitFieldElement method
Implementation
@override
dynamic visitFieldElement(FieldElement element) {
final elementType = element.type.toString();
// DartType ends with '*', which needs to be eliminated
// for the generated code to be accurate.
fields[element.name] = elementType.replaceFirst('*', '');
metaData[element.name] = element.metadata;
}