TriggerResponse<T> class
A generic response wrapper for trigger-based interactions.
T represents the type of data returned in the data field.
Constructors
- TriggerResponse({required String status, required String projectId, required int durationInSeconds, required String message, T? data, String? error})
-
TriggerResponse.fromJson(Map<
String, dynamic> json, T fromJsonT(dynamic json)?) -
Factory to handle generic type
Tusing a providedfromJsonTmapper.factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
dynamic toJsonT(T value)?) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited