UniversalComponentClass class final
Universal template for containing information about component
- Inheritance
-
- Object
- UniversalDataClass
- UniversalComponentClass
- Annotations
-
- @immutable
Constructors
-
UniversalComponentClass({required String name, required Set<
String> imports, required Set<UniversalType> parameters, ({Set<UniversalType> properties, Set<String> refs})? allOf, bool typeDef = false, Discriminator? discriminator, DiscriminatorValue? discriminatorValue, Map<String, Set< ? undiscriminatedUnionVariants, String? description})UniversalType> > -
Constructor for UniversalComponentClass
const
Properties
-
allOf
→ ({Set<
UniversalType> properties, Set<String> refs})? -
Temp field for containing info about
allOffor future processingfinal - description → String?
-
Description of the class
finalinherited
- discriminator → Discriminator?
-
When using a discriminated oneOf, this contains the information about the property name, the mapping of the ref to the property name, and the properties of each of the oneOf variants
final
- discriminatorValue → DiscriminatorValue?
-
When using a discriminated oneOf, where this class is one of the discriminated values, this field contains the information about the parent
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- import → String
-
The import of this class
no setter
-
imports
→ Set<
String> -
List of additional references to components
final
- name → String
-
Name of the class
finalinherited
-
parameters
→ Set<
UniversalType> -
List of class fields
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeDef → bool
-
Whether or not this schema is a basic type
"Date": {
"type": "string",
"format": "date"
}
must be DateTime instead of its own class
final
-
undiscriminatedUnionVariants
→ Map<
String, Set< ?UniversalType> > -
When using an undiscriminated oneOf/anyOf, this contains a mapping of
variant key (usually referenced component name or synthesized inline name)
to the set of properties that the variant exposes. Generators can use
this to create sealed unions with factories and defer deserialization.
final
Methods
-
copyWith(
{String? name, Set< String> ? imports, Set<UniversalType> ? parameters, ({Set<UniversalType> properties, Set<String> refs})? allOf, bool? typeDef, Discriminator? discriminator, DiscriminatorValue? discriminatorValue, Map<String, Set< ? undiscriminatedUnionVariants, String? description}) → UniversalComponentClassUniversalType> > - Creates a copy of this UniversalComponentClass but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override