fromMap method

  1. @override
void fromMap(
  1. Map<String, dynamic> d
)
override

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);
  }
}