FastResponseModel.fromError constructor

FastResponseModel.fromError(
  1. dynamic msg,
  2. dynamic code, [
  3. dynamic d
])

Implementation

factory FastResponseModel.fromError(msg,code,[d]){
  FastResponseModel rep;

  rep = new FastResponseModel()
    ..code = code
    ..data = d
    ..message = msg;

  return rep;
}