EggGroup constructor

const EggGroup(
  1. int id,
  2. String name,
  3. List<Name> names,
  4. @JsonKey(name: 'pokemon_species') List<NamedAPIResource> pokemonSpecies,
)

Implementation

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

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

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

  /// A list of all Pokémon species that are members of this egg group.
  ///
  /// See also:
  ///
  /// [PokemonSpecies]
  @JsonKey(name: 'pokemon_species') List<NamedAPIResource> pokemonSpecies,
) = _EggGroup;