PaystackResponse class

Represents a response from the Paystack API.

This class encapsulates the response structure returned by Paystack, containing the status of the API call and any associated data.

Constructors

PaystackResponse({required bool status, required dynamic data})
Creates a PaystackResponse with the given status and data.
PaystackResponse.fromJson(Map<String, dynamic> json)
Creates a PaystackResponse instance from a JSON object.
factory

Properties

data → dynamic
Contains the data returned from the Paystack API.
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 bool
Indicates whether the API call was successful.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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