Skip to content

Support classes that were not generated by dor_gen #7

Description

@michalowskim

Currently dor_gen supports only classes that were generated by itself.
Let's see example below

@Dto()
class A {
  final B b;

  A(this.b);
}

class B {}

You can't include B as a field in A - dor_gen require B to be generated by dor_gen - it will look for this class in ./b.dto.g.dart but in fact is is somewhere else.

I think we should somehow support classes from outside of dor_gen, so they can be used and combined with each other.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions