encodeResponse static method
Encode response to JSON bytes
Implementation
static Uint8List encodeResponse(MailboxOperationResponse response) {
final json = jsonEncode(response.toJson());
return Uint8List.fromList(utf8.encode(json));
}
Encode response to JSON bytes
static Uint8List encodeResponse(MailboxOperationResponse response) {
final json = jsonEncode(response.toJson());
return Uint8List.fromList(utf8.encode(json));
}