getType static method
Implementation
static String getType(MapEntry<String, dynamic> entry){
String stringReturn = "";
if (entry.value is String) {
stringReturn = "?? ''";
} else if (entry.value is int) {
stringReturn = "?? 0";
} else if (entry.value is double) {
stringReturn = "?? 0";
} else if (entry.value is bool) {
stringReturn = "?? false";
}else if(entry.value is Map){
stringReturn = "?? {'':''}";
}else if(entry.value is List){
if (entry.value.isNotEmpty) {
if(entry.value.first is Map){
stringReturn = "<${ConverterCamelCase.converterCamelCase(Capitalize.capitalizeFirstLetter(entry.key))}Model>[]";
}else{
stringReturn = "<${ConverterCamelCase.converterCamelCase(GetList.getList(entry.value))}>[]";
}
} else {
stringReturn = '<dynamic>[]';
}
}
return stringReturn;
}