Skip to content

Map objectId to object #52

@andrew-tpz

Description

@andrew-tpz

Question: How to realize this kind of mapping?

class Target {
  final String text1;
  final Sourse2 source2;

  Target(this.text1, this.source2);
}

class Source {
  final String text1;
  final int source2Id;  
  Source(this.text1);
}

class Source2 {
  final int id;
  final String text2;
  Source2(this.text2);
}

"Multiple sources" example is close to that, but not exactly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions