JsonObject<T extends JsonModel> constructor
JsonObject<T extends JsonModel> (
- String fieldName
Creates a new JsonObject field with the specified field name.
The fieldName corresponds to the key in the JSON object that this
field will map to during serialization and deserialization. Model
instances are created using dependency injection (GetIt.instance.get<T>()).
Parameters:
fieldName: The name of the field as it appears in JSON data.
Implementation
JsonObject(super.fieldName);