InstanceModel constructor

const InstanceModel(
  1. String key, {
  2. required Object? fields,
  3. String? dartName,
  4. String? doc,
  5. bool? convert,
})

The model of the ClassModel.instances.

Implementation

const InstanceModel(
  this.key, {
  required this.fields,
  final String? dartName,
  this.doc,
  final bool? convert,
})  : assert(key != '', 'Key can not be empty'),
      dartName = dartName ?? '',
      convert = convert ?? true;