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 T using a provided fromJsonT mapper.
factory

Properties

data → T?
final
durationInSeconds → int
final
error → String?
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
final
projectId → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → String
final

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