MoveBattleStylePreference constructor

const MoveBattleStylePreference(
  1. @JsonKey(name: 'low_hp_preference') int lowHpPreference,
  2. @JsonKey(name: 'high_hp_preference') int highHpPreference,
  3. @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;