Importer class

Constructors

Importer({Map<String, ContentType> contentTypes = const {}, Map<String, SchemaContentType> contentMediaTypes = const {}})

Properties

contentMediaTypes Map<String, SchemaContentType>
Maps contentMediaType values to SchemaContentType for content-encoded string schemas. When a schema has contentEncoding set, this config determines whether it generates a StringModel or a binary-backed model. Binary mappings and unmatched media types generate a Base64Model for base64 content and a BinaryModel for other encodings.
final
contentTypes Map<String, ContentType>
Maps media type strings to ContentType for parsing request/response bodies. Default includes 'application/json' only. Add custom JSON-like media types (e.g., 'application/hal+json': ContentType.json) via configuration.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

import(Map<String, dynamic> fileContent) → ApiDocument
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited