/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type NetworkMobileInfo = { /** * The name of the mobile carrier. */ carrierName?: string | undefined; /** * The Mobile Country Code, identifying the country of the mobile network. */ mcc?: string | undefined; /** * The Mobile Network Code, identifying the specific carrier network. */ mnc?: string | undefined; }; /** @internal */ export const NetworkMobileInfo$inboundSchema: z.ZodType< NetworkMobileInfo, z.ZodTypeDef, unknown > = z.object({ carrier_name: z.string().optional(), mcc: z.string().optional(), mnc: z.string().optional(), }).transform((v) => { return remap$(v, { "carrier_name": "carrierName", }); }); export function networkMobileInfoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => NetworkMobileInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NetworkMobileInfo' from JSON`, ); }