adguard-home-manager/lib/models/app_log.dart

30 lines
574 B
Dart
Raw Normal View History

2022-09-30 01:23:28 +02:00
class AppLog {
final String type;
final DateTime dateTime;
final String message;
final String? statusCode;
2022-09-30 01:23:28 +02:00
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()
};
}
@override
String toString() {
return toMap().toString();
}
2022-09-30 01:23:28 +02:00
}