Skip to content

Commit

Permalink
Make text document version nullable as well
Browse files Browse the repository at this point in the history
  • Loading branch information
elliette committed Jan 17, 2025
1 parent c7cbe0e commit aa4febb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/devtools_app/lib/src/shared/editor/api_classes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ class TextDocument with Serializable {
TextDocument.fromJson(Map<String, Object?> map)
: this(
uriAsString: map[Field.uri] as String,
version: map[Field.version] as int,
version: map[Field.version] as int?,
);

final String uriAsString;
final int version;
final int? version;

@override
Map<String, Object?> toJson() => {
Expand Down

0 comments on commit aa4febb

Please sign in to comment.