getTypeString static method
Implementation
static String getTypeString(Property property,
{bool convertToClass = false}) {
String typeString = "";
switch (typeOf(property)) {
case ObjectivePropertType.base:
var baseType = baseTypeMap[property.type];
if (convertToClass) {
typeString += "NSNumber *";
} else {
typeString += "$baseType ";
}
break;
case ObjectivePropertType.systemClass:
var classType = classTypeMap[property.type];
if (classType!.isNotEmpty) {
typeString += "$classType";
}
if (property.subType.isNotEmpty) {
String subTypeString = _getSubTypeString(property);
typeString += subTypeString;
}
typeString += " ";
if (!_isBaseClassObjectType(property)) {
typeString += "*";
}
break;
case ObjectivePropertType.specialType:
typeString = getTypeString(property.subType.first);
break;
default:
typeString += "$prefix${property.type.split(".").last}";
if (property.subType.isNotEmpty) {
String subTypeString = _getSubTypeString(property, showNullTag: true);
typeString += subTypeString;
}
typeString += " *";
}
return typeString;
}