SerdeType.union constructor

const SerdeType.union(
  1. String discriminator,
  2. Map<String, SerdeType> variants
)

Implementation

const factory SerdeType.union(
  String discriminator,
  Map<String, SerdeType> variants,
) = SerdeTypeUnion._;