Skip to content

Commit 5f4a221

Browse files
committed
add a few more toJson methods
1 parent 027ca8e commit 5f4a221

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/common/model/gists.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class Gist {
4747
DateTime? updatedAt;
4848

4949
factory Gist.fromJson(Map<String, dynamic> input) => _$GistFromJson(input);
50+
Map<String, dynamic> toJson() => _$GistToJson(this);
5051
}
5152

5253
/// Model class for a gist file.
@@ -90,6 +91,7 @@ class GistFork {
9091

9192
factory GistFork.fromJson(Map<String, dynamic> input) =>
9293
_$GistForkFromJson(input);
94+
Map<String, dynamic> toJson() => _$GistForkToJson(this);
9395
}
9496

9597
/// Model class for a gits history entry.
@@ -121,6 +123,7 @@ class GistHistoryEntry {
121123

122124
factory GistHistoryEntry.fromJson(Map<String, dynamic> input) =>
123125
_$GistHistoryEntryFromJson(input);
126+
Map<String, dynamic> toJson() => _$GistHistoryEntryToJson(this);
124127
}
125128

126129
/// Model class for gist comments.

0 commit comments

Comments
 (0)