create static method

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

return original data json

Implementation

static Error create({

  String special_type = "error",
  String? message,
})  {
  // Error error = Error({
Map error_data_create_json = {

    "@type": special_type,
    "message": message,


};


        error_data_create_json.removeWhere((key, value) => value == null);
Error error_data_create = Error(error_data_create_json);

return error_data_create;



    }