Returns a JSON representation of ApiErrorResponse.
Map<String, dynamic> toJson() { return {'RequestId': requestId, 'Error': error}; }