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