asList<T> function
Implementation
List<T>? asList<T>(dynamic value){
if(value == null) return null;
var endValue = value;
if(value is String){
endValue = jsonDecode(value);
}
return List<T>.from(endValue);
}
List<T>? asList<T>(dynamic value){
if(value == null) return null;
var endValue = value;
if(value is String){
endValue = jsonDecode(value);
}
return List<T>.from(endValue);
}