PaylikeException constructor

PaylikeException(
  1. Map<String, dynamic> body,
  2. int statusCode
)

Implementation

PaylikeException(Map<String, dynamic> body, int statusCode) {
  this.statusCode = statusCode;
  cause = body['message'];
  code = body['code'];
  errors = ((body['errors'] ?? []) as List<dynamic>).cast<String>();
}