FIELD_MODEL_FIELDS top-level constant
Implementation
const FIELD_MODEL_FIELDS = {
Field(
fieldPath: ['fieldPath'],
fieldType: List<String>,
nullable: true,
description:
'The path of the field within the model, represented as a list of strings.',
),
Field(
fieldPath: ['fieldType'],
fieldType: dynamic,
nullable: true,
description:
'The data type of the field, such as "String", "int", or any dynamic type.',
),
Field(
fieldPath: ['nullable'],
fieldType: bool,
nullable: true,
description: 'Whether the field can hold a null value.',
),
Field(
fieldPath: ['children'],
fieldType: List<Map<String, dynamic>>,
nullable: true,
description:
'Children of this field, allowing for nested fields or complex structures.',
),
Field(
fieldPath: ['primaryKey'],
fieldType: bool,
nullable: true,
description: 'Whether this field serves as a primary key.',
),
Field(
fieldPath: ['foreignKey'],
fieldType: bool,
nullable: true,
description: 'Whether this field serves as a foreign key.',
),
Field(
fieldPath: ['fallback'],
fieldType: Object,
nullable: true,
description:
'The default/fallback value for the field, to use in cases where the value is null.',
),
Field(
fieldPath: ['description'],
fieldType: String,
nullable: true,
description: "A brief comment or explanation for the field's purpose.",
),
};