millsteed / macros

Experiments with upcoming Dart macros
GNU Affero General Public License v3.0
197 stars 2 forks source link

Problems trying out the example #2

Closed felixwoestmann closed 5 months ago

felixwoestmann commented 6 months ago

Hello, first of all I want to thank you for implementing this example of the upcoming macros feature.

However I have a problem. I am currently trying to start the example and am running into the following error message:

bin/model.dart:43:37: Error: Member not found: 'GetUsersResponse.fromJson'.
  final response = GetUsersResponse.fromJson(json);
                                    ^^^^^^^^
bin/model.dart:46:61: Error: Unexpected type 'invalid-type' of a spread.  Expected 'dynamic' or an Iterable.
  final newResponse = response.copyWith(users: [...response.users, millsteed]);

I am on dart version 3.5.0-138.0.dev. Could you maybe give me advice on how to get the program to execute?