graphql-to-dart
graphql-to-dart copied to clipboard
Feature Request: fromJson() constructor
https://stackoverflow.com/questions/47523725/dart-map-to-class
If a fromJson() constructor is added to the classes, it would increase operability with https://github.com/zino-app/graphql-flutter :
final customer = Customer.fromJson(myQueryResult.data);
This should already be generated in the case of actual serializables: https://github.com/micimize/graphql-to-dart/blob/bee58790f36c708fbb674d6cd09ef4794abc4438/example/lib/graphql/hero_for_episode.gql.dart#L305-L311