parseValue<T> method
Implementation
T? parseValue<T>(String key, [T? Function(dynamic map)? parser]) {
try {
return (this == null || this?[key] == null)
? null
: (parser?.call(this![key]) ?? this![key]);
} catch (e) {
debugPrint(e.toString());
return null;
}
}