@override Map<String, dynamic> toJson() => <String, Object?>{ 'type': type, 'id': id ?? -1, 'stackTrace': stackTrace ?? '', };