getType function
Implementation
String getType(v) {
if (v is String) {
return "String";
} else if (v is int) {
return "int";
} else if (v is double) {
return "double";
} else if (v is bool) {
return "bool";
} else if (v == null) {
return "Null";
}
return "dynamic";
}