GpApiResponse<T>.error constructor

GpApiResponse<T>.error(
  1. String message, {
  2. int? statusCode,
})

Implementation

factory GpApiResponse.error(String message, {int? statusCode}) {
  return GpApiResponse._(error: message, statusCode: statusCode);
}