alias

zio.blocks.schema.Modifier.alias
case class alias(name: String) extends Term

Makes the JSON codec also accept name for a field or a case when decoding. Encoding still uses the main name: the rename name, or the Scala name after any naming strategy. A field or case can have several aliases.

Attributes

Source
Modifier.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Term
trait Modifier
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala