IvoryErrorResponse class

The IvoryErrorResponse class is a Dart class that represents an error response with properties such as success, message, statusCode, errors, timestamp, path, and method.

Constructors

IvoryErrorResponse({bool? success, String? message, num? statusCode, List<String>? errors, String? timestamp, String? path, String? method})
IvoryErrorResponse.fromJson(dynamic json)

Properties

errors List<String>?
[List
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String?
[String? message;[ is declaring a nullable String variable named [message[ as a property of the [IvoryErrorResponse[ class. The [?[ after the [String[ type indicates that the variable can be null. This means that the [message[ property may or may not have a value assigned to it.
getter/setter pair
method String?
List<String> type indicates that the variable can be null. This means that [String? method;[ is declaring a nullable String variable named [method[ as a property of the [IvoryErrorResponse[ class. The [?[ after the [String[ type indicates that the variable can be null. This means that the [method[ property may or may not have a value assigned to it. It is used to store the HTTP method used in the request that generated the error response.
getter/setter pair
path String?
as a property of the [IvoryErrorResponse[ class. The [?[ after the path is declaring a nullable string variable named [path[ as a property of the [IvoryErrorResponse[ class. The [?[ after the [String[ type indicates that the variable can be null. This means that the [path[ property may or may not have a value assigned to it. It is used to store the path of the API endpoint that returned the error response.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode num?
[num? statusCode;[ is declaring a nullable numeric variable named [statusCode[ in the [IvoryErrorResponse[ class. The [?[ after the type [num[ indicates that the variable can be assigned a value of [null[. This variable is used to store the HTTP status code of the error response. the [IvoryErrorResponse[ class. The [?[ after the type [bool[ indicates that the variable can be assigned a value of [null[.
getter/setter pair
success bool?
[bool? success;[ is declaring a nullable boolean variable named [success[ in
getter/setter pair
timestamp String?
timestamp is declaring a nullable String variable named [timestamp[ as a property of the [IvoryErrorResponse[ class. The [?[ after the [String[ type indicates that the variable can be null. This means that the [timestamp[ property may or may not have a value assigned to it. It is used to store the timestamp of the error response.
getter/setter pair

Methods

copyWith({bool? success, String? message, num? statusCode, List<String>? errors, String? timestamp, String? path, String? method}) IvoryErrorResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited