OkResponseDto class
Generic "operation succeeded" response.
- Annotations
-
- @JsonSerializable.new()
Constructors
- OkResponseDto({required bool ok})
- Creates a response DTO with the given success flag.
-
OkResponseDto.fromJson(Map<
String, dynamic> json) -
Deserialises an OkResponseDto from JSON.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialises this DTO to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited