mapVX method
Implementation
String mapVX(DartType dt) {
String type = dt.name!;
if (type == "DateTime" || type == "DateTime?") {
return ".toIso8601String()";
}
if (_isEnum(dt)) {
return ".name";
}
if (type == "int?" ||
type == "int" ||
type == "double?" ||
type == "double" ||
type == "String?" ||
type == "String" ||
type == "bool?" ||
type == "bool" ||
type == "Map" ||
type == "Map?") {
return "";
}
return ".toMap()";
}