GraphQLResponseError.fromJson constructor
Implementation
factory GraphQLResponseError.fromJson(Map<String, dynamic> json) {
return GraphQLResponseError(
message: json['message'] as String,
locations: (json['locations'] as List?)
?.cast<Map>()
.map((json) => GraphQLResponseErrorLocation.fromJson(
json.cast<String, dynamic>(),
))
.toList(),
path: json['path'] as List?,
extensions: (json['extensions'] as Map?)?.cast<String, dynamic>(),
);
}