mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-13 20:23:16 +00:00
16 lines
346 B
Dart
16 lines
346 B
Dart
class APIGenericResult<T> {
|
|
APIGenericResult({
|
|
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;
|
|
}
|