DtoRegistry class

Finds a DTO schema by its type or class name.

It is made from AppConfig(dtos: dtos) (the list in lib/dtos.g.dart). Dox does not use dart:mirrors, so this list is how it knows the DTOs.

Constructors

DtoRegistry(List<DtoSchema<Object>> dtos)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ofName(String name) → DtoSchema<Object>?
The DTO with the class name, or null.
ofType(Type type) → DtoSchema<Object>?
The DTO of type, or null.
toString() → String
A string representation of this object.
inherited

Operators

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