documentSchema method Null safety

  1. @override
APISchemaObject documentSchema(
  1. APIDocumentContext context
)
override

Returns an APISchemaObject describing this object's type.

The returned APISchemaObject will be of type APIType.object. By default, each instance variable of the receiver's type will be a property of the return value.

Implementation

@override
APISchemaObject documentSchema(APIDocumentContext context) =>
    entity.document(context);