APIResponse.schema constructor
APIResponse.schema(})
Implementation
APIResponse.schema(this.description, APISchemaObject schema,
{Iterable<String> contentTypes: const ["application/json"],
this.headers}) {
content = contentTypes.fold<Map<String, APIMediaType?>>({}, (prev, elem) {
prev[elem] = APIMediaType(schema: schema);
return prev;
});
}