ApiResponse<T> constructor
ApiResponse<T> ({
- T? data,
- dynamic raw,
- required ResponseStatus status,
- ApiException? error,
- int? statusCode,
- Map<
String, dynamic> ? headers, - String? message,
- Duration? duration,
Implementation
ApiResponse({
this.data,
this.raw,
required this.status,
this.error,
this.statusCode,
this.headers,
this.message,
this.duration,
});