Model class

Represents a data model for an API. Supported only for WebSocket APIs. See Create Models and Mapping Templates for Request and Response Mappings.

Constructors

Model({required String name, String? contentType, String? description, String? modelId, String? schema})
Model.fromJson(Map<String, dynamic> json)
factory

Properties

contentType String?
The content-type for the model, for example, "application/json".
final
description String?
The description of the model.
final
hashCode int
The hash code for this object.
no setterinherited
modelId String?
The model identifier.
final
name String
The name of the model. Must be alphanumeric.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema String?
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
final

Methods

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