FieldModel.assertRequired constructor

FieldModel.assertRequired({
  1. Object? fieldPath,
  2. dynamic fieldType,
  3. bool? nullable,
  4. List<Map<String, dynamic>>? children,
  5. bool? primaryKey,
  6. bool? foreignKey,
  7. String? description,
  8. Object? references,
  9. String? columnDefault,
})

Constructs a new instance of FieldModel, and asserts that all required parameters are not null.

Implementation

factory FieldModel.assertRequired({
  Object? fieldPath,
  dynamic? fieldType,
  bool? nullable,
  List<Map<String, dynamic>>? children,
  bool? primaryKey,
  bool? foreignKey,
  String? description,
  Object? references,
  String? columnDefault,
}) {
  return FieldModel(
    fieldPath: fieldPath,
    fieldType: fieldType,
    nullable: nullable,
    children: children,
    primaryKey: primaryKey,
    foreignKey: foreignKey,
    description: description,
    references: references,
    columnDefault: columnDefault,
  );
}