Discriminator typedef

Discriminator = ({Map<String, String> discriminatorValueToRefMapping, String propertyName, Map<String, Set<UniversalType>> refProperties})

Implementation

typedef Discriminator = ({
  /// The name of the property that is used to discriminate the oneOf variants
  String propertyName,

  /// The mapping of the property value to the ref
  Map<String, String> discriminatorValueToRefMapping,

  /// The list of properties stored for each ref
  Map<String, Set<UniversalType>> refProperties,
});