FieldDefinition class
Represents a field within a Dart class.
Constructors
- FieldDefinition({required String name, required String originalKey, required String type, bool isList = false, String? nestedClassName})
- Creates a new FieldDefinition.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isList → bool
-
Indicates whether the field is a List of the specified type.
final
- name → String
-
The camelCase name of the field.
final
- nestedClassName → String?
-
The name of the nested class if this field represents a nested object
or a list of nested objects. Null for primitive types.
final
- originalKey → String
-
The original key name found in the JSON object.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The Dart type of the field (e.g., 'int', 'String', or a nested class name).
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