JsonAttribute class

Simple helper class to track the info for a JSON attribute type is the Dart type (i.e. String, int, bool, List, Map etc) cast is optional and is used to generate type specific inference for any complex types like List and Map

Constructors

JsonAttribute(String type, {String? cast})

Properties

cast String?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
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