copyWith method

LiteralJsonSchemaProperty copyWith({
  1. LiteralJsonSchemaPropertyType? type,
  2. String? description,
  3. String? dynamicVariable,
  4. dynamic constantValue,
})

Implementation

LiteralJsonSchemaProperty copyWith(
    {enums.LiteralJsonSchemaPropertyType? type,
    String? description,
    String? dynamicVariable,
    dynamic constantValue}) {
  return LiteralJsonSchemaProperty(
      type: type ?? this.type,
      description: description ?? this.description,
      dynamicVariable: dynamicVariable ?? this.dynamicVariable,
      constantValue: constantValue ?? this.constantValue);
}