mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-18 01:17:50 +00:00
14 lines
312 B
Dart
14 lines
312 B
Dart
|
class APIGenericResult<T> {
|
||
|
APIGenericResult({
|
||
|
required this.success,
|
||
|
required this.data,
|
||
|
this.message,
|
||
|
});
|
||
|
|
||
|
/// 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;
|
||
|
}
|