method ServiceError.toServiceErrorimport { ServiceError } from "https://deno.land/x/natsws@v1.29.2/src/mod.ts"; toServiceError(msg: Msg): ServiceError | nullParametersmsg: MsgReturnsServiceError | null