ServerResponse class

A class to represent a Sanity response to a query.

Annotations
  • @JsonSerializable()

Constructors

ServerResponse({required dynamic result, required int ms, required String query})
Creates a new server response with the given result, time and query.
ServerResponse.fromJson(Map<String, dynamic> json)
Creates a new server response from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
ms int
The time it took for the server to respond to the query.
final
query String
The query that was sent to the server.
final
result → dynamic
The result of the query, which can be a null, object or array.
final
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
toString() String
A string representation of this object.
inherited

Operators

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