GraphQLBaseError class

This class works as abstraction for GraphQL errors by parsing error to Object

Constructors

GraphQLBaseError({String? message, List<ErrorLocation>? locations, List? path, GraphQLBaseExtension? extensions})
GraphQLBaseError.fromJson(Map<String, dynamic> json)
factory

Properties

exceptionStatus int?
no setter
extensions GraphQLBaseExtension?
getter/setter pair
extensionsCode String?
no setter
hashCode int
The hash code for this object.
no setterinherited
locations List<ErrorLocation>?
getter/setter pair
message String?
getter/setter pair
path List?
getter/setter pair
responseCode String?
no setter
responseStatus int?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJsonList(List? jsonList) List<GraphQLBaseError>?
inherited
fromJsonMap(Map<String, dynamic>? json) GraphQLBaseError?
fromJsonString(String? json) GraphQLBaseError?
inherited
fromJsonStringList(String? jsonStringList) List<GraphQLBaseError>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJsonMap() Map<String, dynamic>
inherited
toJsonString() String
inherited
toString() String
This is just to suggest children to implement a named constructor to support creating objects fromJson(...) and fromJsonString(...) as easy as T.build().fromJson(...) or T.build().fromJsonString(...)
inherited

Operators

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

Static Methods

errorLocationListFromJson(dynamic json) List<ErrorLocation>
errorLocationListToJson(List<ErrorLocation>? list) List<Map<String, dynamic>>?