google / json_serializable.dart

Generates utilities to aid in serializing to/from JSON.
https://pub.dev/packages/json_serializable
BSD 3-Clause "New" or "Revised" License
1.55k stars 397 forks source link

Handle potentially aliased imports #19

Open kevmoo opened 7 years ago

kevmoo commented 7 years ago

It's really not safe to reference Map or String in the case where someone does import "dart:core" as foo; – in practice this should be rare.

Same for other types. In general, we just write out the type name w/ out worrying about imports.

pavanpodila commented 6 months ago

This is also an issue where the same class name collides with others from the std library or Flutter. Eg. I have an Action class that needs an import alias else it collides with the Action in Flutter SDK.