ComplianceCSIDResponse class

Main response model for Compliance CSID API

This model represents the response structure from the Compliance CSID API, which could be a success, error, or failure response.

Constructors

ComplianceCSIDResponse.new({required int statusCode, required CSIDResponseStatus status, ComplianceSuccessData? successData, ComplianceErrorData? errorData, ComplianceFailureData? failureData})
Constructor for initializing the response model.
ComplianceCSIDResponse.fromJson(int statusCode, Map<String, dynamic> json)
Parses JSON into the appropriate response type (Success, Error, or Failure).
factory

Properties

errorData ComplianceErrorData?
The data related to client-side errors (only if status is CSIDResponseStatus.clientError).
final
failureData ComplianceFailureData?
The data related to server-side errors (only if status is CSIDResponseStatus.serverError).
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status CSIDResponseStatus
The response status indicating whether the request was successful, had client-side errors, server-side errors, or is unknown.
final
statusCode int
The HTTP status code returned by the server.
final
successData ComplianceSuccessData?
The data related to a successful response (only if status is CSIDResponseStatus.success).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the model back to JSON.
toString() String
A string representation of this object.
inherited

Operators

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