getValue method
Implementation
V? getValue(String keypath) {
final keys = keypath.split('.');
dynamic value = this;
for (final key in keys) {
if (value is Map && value.containsKey(key)) {
value = value[key];
} else {
return null;
}
}
return value as V?;
}