fromMap method
Populates the object from a map representation.
Implementation
@override
void fromMap(Map<String, dynamic> d) {
mainObjectRef = d['mainObjectRef'];
mainObjectRef ??= ref;
duplicateRefs = d['duplicateRefs'];
if (duplicateRefs.contains(mainObjectRef)) {
duplicateRefs.remove(mainObjectRef);
}
}