mergeWith method
Creates a copy of this instance, merging another model's fields into this model's fields.
Implementation
DataRefModel mergeWith(
BaseModel? other, {
bool deepMerge = false,
}) {
final a = toJson();
final b = other?.toJson() ?? {};
final data = (deepMerge ? mergeDataDeep(a, b) : {...a, ...b}) as Map;
return DataRefModel.fromJson(data.cast());
}