mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-22 14:59:12 +00:00
27 lines
No EOL
525 B
Dart
27 lines
No EOL
525 B
Dart
import 'dart:convert';
|
|
|
|
class AppLog {
|
|
final String type;
|
|
final DateTime dateTime;
|
|
final String message;
|
|
final int? statusCode;
|
|
final String? resBody;
|
|
|
|
const AppLog({
|
|
required this.type,
|
|
required this.dateTime,
|
|
required this.message,
|
|
this.statusCode,
|
|
this.resBody,
|
|
});
|
|
|
|
Map<String, String> toMap() {
|
|
return {
|
|
'type': type,
|
|
'dateTime': dateTime.toString(),
|
|
'message': message,
|
|
'statusCode': statusCode.toString(),
|
|
'resBody': resBody.toString()
|
|
};
|
|
}
|
|
} |