String? getField(String? fieldName, [String? def]) { if (fieldName == null) return def; var field = getFieldExtended(fieldName); return field?.toString() ?? def; }