Resp class
Server response.
- Annotations
-
- @freezed
Constructors
-
Resp({@JsonKey(name: '_time') String? debugTime, @JsonKey(name: 'ok') required bool ok, @JsonKey(name: 'result') dynamic result, @JsonKey(name: 'error') String? error, @JsonKey(name: 'details') String? details, @JsonKey(name: 'reason') String? reason, @JsonKey(name: 'markup') List<
MarkupEntity> ? markup}) -
constfactory
-
Resp.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $RespCopyWith<
Resp> -
no setterinherited
- debugTime → String?
-
Server side work time.
no setterinherited
- details → String?
-
Error (only if ok is false and Error is 'InvalidData').
no setterinherited
- error → String?
-
Error (only if ok is false).
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
markup
→ List<
MarkupEntity> ? -
Reason markup (only if ok is false and Error is
AccessDenied
).no setterinherited - ok → bool
-
Request status.
no setterinherited
- reason → String?
-
Reason (only if ok is false and Error is
AccessDenied
).no setterinherited - result → dynamic
-
Result only if ok is true).
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
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited