Skip to content

Commit 2185e8b

Browse files
authored
add Example.property field to docstring in example (#1337)
1 parent facdb5e commit 2185e8b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

json_annotation/lib/src/json_converter.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
///
2020
/// @JsonSerializable()
2121
/// @MyJsonConverter()
22-
/// class Example {}
22+
/// class Example {
23+
/// final Value property;
24+
/// }
2325
/// ```
2426
///
2527
/// or on a property:
@@ -36,7 +38,9 @@
3638
///
3739
/// ```dart
3840
/// @JsonSerializable(converters: [MyJsonConverter()])
39-
/// class Example {}
41+
/// class Example {
42+
/// final Value property;
43+
/// }
4044
/// ```
4145
abstract class JsonConverter<T, S> {
4246
const JsonConverter();

0 commit comments

Comments
 (0)