ModelParams class
Represents the parameters associated with a specific model.
- Annotations
-
- @JsonSerializable()
Constructors
-
ModelParams.new({required String model, GenerationConfig generationConfig = const GenerationConfig(), List<
SafetySetting> safetySettings = const []}) - Creates a new instance of ModelParams.
-
ModelParams.fromJson(Map<
String, dynamic> json) -
Creates a new instance of ModelParams from a JSON map.
factory
Properties
- generationConfig → GenerationConfig
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- model → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
safetySettings
→ List<
SafetySetting> -
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the ModelParams instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited