ErrorDto class

Data Transfer Object for ErrorData.

Extends ErrorData and adds serialization/deserialization functionality.

Inheritance

Constructors

ErrorDto({required String description, required int code})
Creates a new ErrorDto instance.
ErrorDto.fromJson(String json)
Creates an ErrorDto from a JSON string.
factory
ErrorDto.fromMap(Map<String, dynamic> map)
Creates an ErrorDto from a map.
factory

Properties

code → int
The numeric error code.
finalinherited
description → String
A human-readable description of the error.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toErrorData() → ErrorData
Converts this ErrorDto to an ErrorData.
toMap() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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