Open rasyadh opened 3 years ago
@rasyadh please, also adding your Customer
into factories
and mixin
it with Mappable
@markgravity already adding it, but still got the same error
@rasyadh oh, I found the problem. When we define like this
Mappable.factories = {
BaseResponses: () => BaseResponses(),
};
it means
Mappable.factories = {
BaseResponses: () => BaseResponses<dynamic>(),
};
so that it will throw the error. I will look further for a better solution for your case
@markgravity thank you, I think it will be great if we can do so I will try to do work around on this as well
Any solution? :(
I have class model BaseResponses
and also register it in mappable factories
I try to convert json to BaseResponses which T is another class model, on this case is
Customer
. But when I try to call it like this:I got an error its throw execution error with message: