getField method
Implementation
dynamic getField(O o, String key, {EntityHandler<O>? entityHandler}) {
if (o is Entity) {
return o.getField(key);
} else if (entityHandler != null) {
return entityHandler.getField(o, key);
} else if (o is Map) {
return o[key];
} else {
throw StateError('getField($key): No EntityHandler provided for: $o');
}
}