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