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