selfprivacy.org.app/lib/logic/api_maps/generic_result.dart

16 lines
340 B
Dart
Raw Normal View History

class GenericResult<T> {
GenericResult({
required this.success,
required this.data,
this.message,
this.code,
});
/// Whether was a response successfully received,
/// doesn't represent success of the request if `data<T>` is `bool`
final bool success;
final String? message;
final T data;
final int? code;
}