// 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: ModelInfoRequest
// ==========================================

/// Request class for the show model info endpoint.
@freezed
class ModelInfoRequest with _$ModelInfoRequest {
  const ModelInfoRequest._();

  /// Factory constructor for ModelInfoRequest
  const factory ModelInfoRequest({
    /// 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,
  }) = _ModelInfoRequest;

  /// Object construction from a JSON representation
  factory ModelInfoRequest.fromJson(Map<String, dynamic> json) =>
      _$ModelInfoRequestFromJson(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,
    };
  }
}
