Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Serializable<T>

Interface for companion objects of serializable types. Its main purpose is to serialize and deserialize values between raw JSON and typed values.

Type parameters

  • T

    The template type.

Hierarchy

Index

Properties

Methods

Properties

decoder: Decoder<T>
internal

Methods

  • encode(t: T): unknown
  • internal

    Encodes T in expected shape for JSON API.

    Parameters

    • t: T

    Returns unknown

Generated using TypeDoc