mapper method
Abstract method for mapping this service's data
For example, if this service is for Users
class UserService extends ServiceBase<User> {
User mapper(data) {
return User.fromJson(data);
}
}
Implementation
@protected
@override
mapper(data) {
return data;
}