MoveBattleStylePreference constructor
const
MoveBattleStylePreference(
- @JsonKey(name: 'low_hp_preference') int lowHpPreference,
- @JsonKey(name: 'high_hp_preference') int highHpPreference,
- @JsonKey(name: 'move_battle_style') NamedAPIResource moveBattleStyle
Implementation
const factory MoveBattleStylePreference(
/// Chance of using the move, in percent, if HP is under one half.
@JsonKey(name: 'low_hp_preference') int lowHpPreference,
/// Chance of using the move, in percent, if HP is over one half.
@JsonKey(name: 'high_hp_preference') int highHpPreference,
/// The move battle style.
///
/// See also:
///
/// [MoveBattleStyle]
@JsonKey(name: 'move_battle_style') NamedAPIResource moveBattleStyle,
) = _MoveBattleStylePreference;