Skip to content
Discussion options

You must be logged in to vote

Don't specify the required keyword then. The error you shared initially has nothing to do with Color or Freezed. It's simply not valid Dart code

As for fromJson, Color is not serializable. If you want a from/toJson, you'll need a custom JsonConverter

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ToddManUtah
Comment options

@rrousselGit
Comment options

Answer selected by ToddManUtah
@ToddManUtah
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants