mapper abstract method

  1. @protected
T mapper(
  1. dynamic data
)

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
T mapper(dynamic data);