decodeResponse static method

OverMediaResponse decodeResponse(
  1. Uint8List bytes
)

Decode response bytes to an OverMediaResponse

Implementation

static OverMediaResponse decodeResponse(Uint8List bytes) {
  final json = utf8.decode(bytes);
  final data = jsonDecode(json) as Map<String, dynamic>;
  return OverMediaResponse(data);
}