UniversalComponentClass class final

Universal template for containing information about component

Inheritance
Annotations
  • @immutable

Constructors

UniversalComponentClass.new({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, String? description})
Constructor for UniversalComponentClass
const

Properties

allOf → ({Set<UniversalType> properties, Set<String> refs})?
Temp field for containing info about allOf for future processing
final
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

Methods

copyWith({String? name, Set<String>? imports, Set<UniversalType>? parameters, ({Set<UniversalType> properties, Set<String> refs})? allOf, bool? typeDef, Discriminator? discriminator, DiscriminatorValue? discriminatorValue, String? description}) UniversalComponentClass
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