FieldModel.assertRequired constructor
FieldModel.assertRequired({})
Constructs a new instance of FieldModel, and asserts that all required parameters are not null.
Implementation
factory FieldModel.assertRequired({
List<String>? fieldPath,
dynamic? fieldType,
bool? nullable,
List<Map<String, dynamic>>? children,
bool? primaryKey,
bool? foreignKey,
Object? fallback,
String? description,
}) {
assert(fieldType != null);
return FieldModel(
fieldPath: fieldPath,
fieldType: fieldType,
nullable: nullable,
children: children,
primaryKey: primaryKey,
foreignKey: foreignKey,
fallback: fallback,
description: description,
);
}