ClassModel class

The model to contain a model.

Annotations
  • @sealed
  • @immutable

Constructors

ClassModel(String key, {required Iterable<FieldModel> fields, String? dartName, String? doc, String? reference, bool? staticKeys, bool? toJson, bool? convert, Iterable<InstanceModel>? instances})
The model to contain a model.
const

Properties

convert bool
If the class name should be converted using StringUtils.toCamelCase.
final
dartName String
The name of this class.
final
doc String?
The documentation of this class.
final
fields Iterable<FieldModel>
The fields of this class.
final
hashCode int
The hash code for this object.
no setterinherited
instances Iterable<InstanceModel>
The fields of this class.
final
key String
The key of this field in the class.
final
name String
The valid dart name of this field.
no setter
reference String
The reference to the name of this class.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
staticKeys bool
If the static fields with the names of actual field keys should be generated.
final
toJson bool
If the toJson and fromJson serialization methods should also be generated.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited