Skip to content

Commit 06c0765

Browse files
committed
#126: fixed last tests
1 parent 6f3d60b commit 06c0765

File tree

5 files changed

+6
-44
lines changed

5 files changed

+6
-44
lines changed

test/writer/object_model_writer/to-json-from-json-handler/config.txt

-13
This file was deleted.

test/writer/object_model_writer/to-json-from-json-handler/output.txt

-22
This file was deleted.

test/writer/object_model_writer/to-json-from-json-handler/pubspec.txt

-4
This file was deleted.

test/writer/object_model_writer/to-json-from-json/config.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ Person:
22
path: user/custom_person.dart
33
type: object
44
properties:
5-
address: Address
5+
address:
6+
type: Address
7+
toJson: handleToJson
8+
fromJson: handleFromJson
69

710
Address:
811
type: object
912
properties:
1013
streetName:
11-
type: String
12-
toJson: handleToJson
13-
fromJson: handleFromJson
14+
type: String

test/writer/object_model_writer/to-json-from-json/output.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ part 'person.g.dart';
77

88
@JsonSerializable(explicitToJson: true)
99
class Person {
10-
@JsonKey(name: 'address', required: true, fromJson: handleFromJson, toJson: handleToJson)
10+
@JsonKey(name: 'address', required: true, includeIfNull: false, fromJson: handleFromJson, toJson: handleToJson)
1111
final Address address;
1212

1313
const Person({

0 commit comments

Comments
 (0)