Skip to content

Commit

Permalink
clean up realm and import object model
Browse files Browse the repository at this point in the history
  • Loading branch information
lindseymoore committed May 30, 2024
1 parent 6c39e58 commit 04f3eb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 107 deletions.
13 changes: 3 additions & 10 deletions examples/dart/test/serialization_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@ import 'package:test/test.dart';
import 'package:realm_dart/realm.dart';
import 'utils.dart';

part 'serialization_test.realm.dart';

@RealmModel()
class _Pet {
late String type;
late int numberOfLegs;
late DateTime birthDate;

late double? price;
}
import './pet.dart';

main() {
final config = Configuration.local([Pet.schema]);
Expand Down Expand Up @@ -65,4 +56,6 @@ main() {
expect(deserializeFromEjson.type, spider.type);

});

cleanUpRealm(realm);
}
96 changes: 0 additions & 96 deletions examples/dart/test/serialization_test.realm.dart

This file was deleted.

2 changes: 1 addition & 1 deletion source/sdk/flutter/realm-database/serialization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ a deserialized instance of the specified object type.
Custom Encoders
---------------

For non-realm classes, you can use the ``@ejson`` annotation to generate an
For non-Realm classes, you can use the ``@ejson`` annotation to generate an
encoder and decoder:

.. literalinclude:: /examples/generated/flutter/person.snippet.ejson-annotation.dart
Expand Down

0 comments on commit 04f3eb5

Please sign in to comment.