referencesOrNull static method
Assumes unknown is a TFieldRecord or FieldModel and tries to get
the references property, or returns null. The value is typically a
Type literal (e.g. references: ModelUser); the generator resolves it
to the target model at codegen time.
Implementation
static Object? referencesOrNull(dynamic unknown) {
try {
return unknown.references as Object?;
} catch (_) {
try {
return unknown.$8 as Object?;
} catch (_) {
return null;
}
}
}