DEV Community

Alexandre MASSA
Alexandre MASSA

Posted on

Flutter json_serializable different reference key name switch request

I'm asking a question and not found an similar post for this.

I explain, I use json_serializable, but webservice provide some information of the same type of object by with different name keys, exemple :

@JsonSerializable(explicitToJson: true)
class Group {
  Group(
      this.id
      this.name,
      this.owner,
      this.description);

  int id;
  String name;
  User

Top comments (0)