GlobalResponse class
Represents the top-level response from the InShorts API.
Constructors
- GlobalResponse({Data? data, bool? error, String? message})
- Creates a GlobalResponse.
-
GlobalResponse.fromJson(Map<
String, dynamic> json) - Factory for creating GlobalResponse from a JSON map.
Properties
- data ↔ Data?
-
The container for the actual news data and metadata.
getter/setter pair
- error ↔ bool?
-
Indicates if there was an error in the request.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String?
-
Message providing additional info about the response or error.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts GlobalResponse to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited