diff --git a/dart_quill_delta/lib/src/delta/delta.dart b/dart_quill_delta/lib/src/delta/delta.dart index cb3a60be6..95ee0f87d 100644 --- a/dart_quill_delta/lib/src/delta/delta.dart +++ b/dart_quill_delta/lib/src/delta/delta.dart @@ -122,7 +122,8 @@ class Delta { List toList() => List.from(operations); /// Returns JSON-serializable version of this delta. - List toJson() => toList().map((operation) => operation.toJson()).toList(); + List> toJson() => + toList().map((operation) => operation.toJson()).toList(); /// Returns `true` if this delta is empty. bool get isEmpty => operations.isEmpty;