How about?
final a = SomeClass(); final b = SomeClass(); // Copy one to the other. b.fromJson(a.toJson()); // Identical properties but not the same object. a.toString() == b.toString(); // true