You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toJson method could not have been generated, as per the error message coming from build_runner:
Could not generate `toJson` code for`activityDoesNotExist`.
To support the type`ValidationResult` you can:
* Use `JsonConverter`
https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonConverter-class.html
* Use `JsonKey` fields `fromJson` and `toJson`
https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/fromJson.html
https://pub.dev/documentation/json_annotation/latest/json_annotation/JsonKey/toJson.html
package:companion/data/contracts/contracts.dart:16864:34
╷
16864 │ final ValidationResult<String> activityDoesNotExist;
│ ^^^^^^^^^^^^^^^^^^^^
From the following C# code:
an invalid dart class is generated:
The
toJson
method could not have been generated, as per the error message coming frombuild_runner
:Software/package versions used:
The text was updated successfully, but these errors were encountered: