create static method

Error create({
  1. String? special_type,
  2. String? message,
})
override

return original data json

Implementation

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

  return error;
}