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