withDescription method

  1. @override
ObjectSpec withDescription(
  1. String description
)
override

Creates a copy of this spec with the given description.

Implementation

@override
ObjectSpec withDescription(String description) => ObjectSpec(
      name: name,
      properties: properties,
      required: required,
      additionalProperties: additionalProperties,
      title: title,
      description: description,
      nullable: nullable,
      examples: examples,
      isDeprecated: isDeprecated,
    );