decode method

  1. @override
void decode(
  1. KeyedArchive object
)
override

Implementation

@override
void decode(KeyedArchive object) {
  super.decode(object);

  name = object.decode("name");
  description = object.decode("description");
  location = APIParameterLocationCodec.decode(object.decode("in"));
  _required = object.decode("required");

  deprecated = object.decode("deprecated");
  allowEmptyValue = object.decode("allowEmptyValue");

  schema = object.decodeObject("schema", () => APISchemaObject());
  style = object.decode("style");
  explode = object.decode("explode");
  allowReserved = object.decode("allowReserved");
  content = object.decodeObjectMap("content", () => APIMediaType());
}