copyWithWrapped method

LiteralJsonSchemaProperty copyWithWrapped({
  1. Wrapped<LiteralJsonSchemaPropertyType>? type,
  2. Wrapped<String?>? description,
  3. Wrapped<String?>? dynamicVariable,
  4. Wrapped? constantValue,
})

Implementation

LiteralJsonSchemaProperty copyWithWrapped(
    {Wrapped<enums.LiteralJsonSchemaPropertyType>? type,
    Wrapped<String?>? description,
    Wrapped<String?>? dynamicVariable,
    Wrapped<dynamic>? constantValue}) {
  return LiteralJsonSchemaProperty(
      type: (type != null ? type.value : this.type),
      description:
          (description != null ? description.value : this.description),
      dynamicVariable: (dynamicVariable != null
          ? dynamicVariable.value
          : this.dynamicVariable),
      constantValue:
          (constantValue != null ? constantValue.value : this.constantValue));
}