discontinuedPackage json_schema2 has been discontinued and replaced by json_schema.

type property

SchemaType? get type

Implementation

SchemaType? get type => _typeList!.length == 1 ? _typeList!.single : null;