Response constructor

Response({
  1. StatusCode? statusCode,
  2. String? message,
  3. String? data,
})

Implementation

factory Response({
  $1.StatusCode? statusCode,
  $core.String? message,
  $core.String? data,
}) {
  final _result = create();
  if (statusCode != null) {
    _result.statusCode = statusCode;
  }
  if (message != null) {
    _result.message = message;
  }
  if (data != null) {
    _result.data = data;
  }
  return _result;
}