dco_decode_server_state_error method

  1. @protected
ServerStateError dco_decode_server_state_error(
  1. dynamic raw
)

Implementation

@protected
ServerStateError dco_decode_server_state_error(dynamic raw) {
  // Codec=Dco (DartCObject based), see doc to use other codecs
  final arr = raw as List<dynamic>;
  if (arr.length != 1)
    throw Exception('unexpected arr length: expect 1 but see ${arr.length}');
  return ServerStateError(
    field0: dco_decode_String(arr[0]),
  );
}