APIRequestBody.schema constructor Null safety
- APISchemaObject schema,
- {Iterable<
String> contentTypes = const ["application/json"], - String? description,
- bool isRequired = false}
Implementation
APIRequestBody.schema(
APISchemaObject schema, {
Iterable<String> contentTypes = const ["application/json"],
this.description,
this.isRequired = false,
}) {
content = contentTypes.fold({}, (prev, elem) {
prev![elem] = APIMediaType(schema: schema);
return prev;
});
}