create static method

SocketError create({
  1. String? special_type,
  2. String? message,
  3. String? description,
  4. String? error,
})
override

return original data json

Implementation

static SocketError create({
  String? special_type,
  String? message,
  String? description,
  String? error,
}) {
  SocketError socketError = SocketError({
    "@type": special_type,
    "message": message,
    "description": description,
    "error": error,
  });

  return socketError;
}