// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: invalid_annotation_target
part of ollama_schema;

// ==========================================
// CLASS: DeleteModelRequest
// ==========================================

/// Request class for deleting a model.
@freezed
class DeleteModelRequest with _$DeleteModelRequest {
  const DeleteModelRequest._();

  /// Factory constructor for DeleteModelRequest
  const factory DeleteModelRequest({
    /// The model name.
    ///
    /// Model names follow a `model:tag` format. Some examples are `orca-mini:3b-q4_1` and `llama3:70b`. The tag is optional and, if not provided, will default to `latest`. The tag is used to identify a specific version.
    required String model,
  }) = _DeleteModelRequest;

  /// Object construction from a JSON representation
  factory DeleteModelRequest.fromJson(Map<String, dynamic> json) =>
      _$DeleteModelRequestFromJson(json);

  /// List of all property names of schema
  static const List<String> propertyNames = ['model'];

  /// Perform validations on the schema property values
  String? validateSchema() {
    return null;
  }

  /// Map representation of object (not serialized)
  Map<String, dynamic> toMap() {
    return {
      'model': model,
    };
  }
}
