PropertySpec constructor

const PropertySpec({
  1. required String name,
  2. String? jsonName,
  3. required TypeSpec type,
  4. bool required = true,
})

Creates a new PropertySpec.

Implementation

const PropertySpec({
  required this.name,
  this.jsonName,
  required this.type,
  this.required = true,
});