Skip to content

Commit

Permalink
fix: use Node instead of Document in FileResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
timcreatedit authored and arnemolland committed Apr 27, 2024
1 parent 15e1149 commit 9376fde
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 3 additions & 1 deletion lib/src/models/service/file_response.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:equatable/equatable.dart';
import 'package:figma/src/converters/converters.dart';
import 'package:figma/src/models.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:copy_with_extension/copy_with_extension.dart';
Expand All @@ -25,7 +26,8 @@ class FileResponse extends Equatable {
final String? version;

/// File document (top-level node).
final Document? document;
@NodeJsonConverter()
final Node? document;

/// File components, if any.
final Map<String, Component>? components;
Expand Down
14 changes: 6 additions & 8 deletions lib/src/models/service/file_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9376fde

Please sign in to comment.