getObj<T> static method
Converts JSON string source
to object.
Implementation
static dynamic getObj<T>(String? source) {
if (source == null || source.isEmpty) return null;
try {
return json.decode(source);
} catch (e) {
return null;
}
}