ProtoGoogleRpcStatus.deserialize constructor

ProtoGoogleRpcStatus.deserialize(
  1. List<int> bytes
)

Implementation

factory ProtoGoogleRpcStatus.deserialize(List<int> bytes) {
  final decode = ProtoBufferDecoder.decode(
    bytes: bytes,
    messageConfig: protoConfigStatic(),
  );
  return ProtoGoogleRpcStatus(
    code: decode.getInt<int?>(1),
    message: decode.getString<String?>(2),
    details:
        decode
            .getListOrNull<List<int>>(3)
            ?.map((b) => ProtoGoogleAny.deserialize(b))
            .toList() ??
        [],
  );
}