JSON to Scala 3 & Scala 2 Case Class Generator
Converta payloads JSON em case classes tipadas para Scala com suporte a codecs automáticos do Circe, Play JSON e zio-json.
package com.example.models
import java.time.Instant
import io.circe._
import io.circe.generic.semiauto._
import io.circe.syntax._
final case class Customer(
customerId: String,
email: String,
fullName: String,
loyaltyTier: String,
registeredAt: Instant
) derives Codec.AsObject
final case class ShippingAddress(
street: String,
city: String,
state: String,
postalCode: String,
country: String
) derives Codec.AsObject
final case class LineItem(
sku: String,
title: String,
unitPrice: BigDecimal,
quantity: Int,
taxRate: BigDecimal,
inStock: Boolean
) derives Codec.AsObject
final case class Payment(
transactionRef: String,
method: String,
isAuthorized: Boolean,
paidAt: Instant
) derives Codec.AsObject
final case class OrderPayload(
orderId: String,
orderNumber: String,
customer: Customer,
shippingAddress: ShippingAddress,
lineItems: List[LineItem],
subtotal: BigDecimal,
taxAmount: BigDecimal,
totalAmount: BigDecimal,
currency: String,
payment: Payment,
discountCode: Option[String] = None,
notes: String
) derives Codec.AsObject
Execução Local Zero-Knowledge
Todo o processamento, análise e geração de código ocorrem estritamente na memória do seu navegador. Zero uploads para servidores externos.
Motor Reativo de Submilissegundos
All data payloads remain strictly local with zero external server communication.
Production Ready Export
Clean, optimized output formats ready for immediate deployment.