| 1 | import 'dart:convert'; |
| 2 | |
| 3 | class ProxyToDaemonResult { |
| 4 | final String body; |
| 5 | final int responseCode; |
| 6 | |
| 7 | ProxyToDaemonResult({required this.body, required this.responseCode}); |
| 8 | |
| 9 | factory ProxyToDaemonResult.fromJson(Map<String, dynamic> json) => ProxyToDaemonResult( |
| 10 | body: utf8.decode(base64Decode(json['base64_body'] as String? ?? '')), |
| 11 | responseCode: json['response_code'] as int? ?? 0, |
| 12 | ); |
| 13 | } |