SortRequestDto class

Optional sort parameters carried inside a request DTO.

Annotations
  • @JsonSerializable.new()

Constructors

SortRequestDto({SortField? sortField, SortDirection? sortDirection})
Creates a sort request. Both fields are optional — when absent the server uses its own default ordering.
SortRequestDto.fromJson(Map<String, dynamic> json)
Deserialises a SortRequestDto from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortDirection SortDirection?
The direction to sort in, or null for server-default.
final
sortField SortField?
The field to sort by, or null for server-default.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialises this DTO to JSON, stripping null entries so the VM-side handler (which coerces to Map<String, String>) doesn't choke.
toString() String
A string representation of this object.
inherited

Operators

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