MoveLearnMethod constructor

const MoveLearnMethod(
  1. int id,
  2. String name,
  3. List<Description> descriptions,
  4. List<Name> names,
  5. @JsonKey(name: 'version_groups') List<NamedAPIResource> versionGroups,
)

Implementation

const factory MoveLearnMethod(
  /// The identifier for this resource.
  int id,

  /// The name for this resource.
  String name,

  /// The description of this resource listed in different languages.
  List<Description> descriptions,

  /// The name of this resource listed in different languages.
  List<Name> names,

  /// A list of version groups where moves can be learned through this method.
  ///
  /// See also:
  ///
  /// [VersionGroup]
  @JsonKey(name: 'version_groups') List<NamedAPIResource> versionGroups,
) = _MoveLearnMethod;