Closed Prn-Ice closed 2 years ago
@Prn-Ice Thanks for this. I will fix it as soon as possible.
@Prn-Ice :wave: I have tested it and I have not encountered any problems. Json to Dart Model generator generate imports for two different packages. Example:
import 'package:collection/collection.dart'; // generates if equality enabled.
import 'package:json_annotation/json_annotation.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
And as you know freezed
has both imports for json_serializable
. The problem is that I can not use freezed
import for json_serializable
because not everyone uses a freezed
, some developers only use json_serializable
or vice versa.
I see, thanks
Is there an existing issue for this?
Current Behavior
Each model class contains an import for
collection
andfreezed_annotation
.freezed_annotation
already exportscollection
, so this is just a duplicate call.Expected Behavior
import only
freezed_annotation
in model classes.Steps To Reproduce
No response
Version
Relevant JSON syntax
Anything else?
No response