factory QueryError.fromJson(Map<String, dynamic> json) { return QueryError( errorCode: (json['ErrorCode'] as String?)?.toQueryErrorCode(), message: json['Message'] as String?, ); }