creatureType property

CreatureType? get creatureType

Maps the unified species type to its internal CreatureType model.

Implementation

CreatureType? get creatureType {
  switch (this) {
    case Aquatic.jellyfish:
      return CreatureType.jellyfish;
    case Aquatic.turtle:
      return CreatureType.seaTurtle;
    case Aquatic.manta:
      return CreatureType.mantaRay;
    case Aquatic.seahorse:
      return CreatureType.seahorse;
    case Aquatic.starfish:
      return CreatureType.starfish;
    case Aquatic.crab:
      return CreatureType.hermitCrab;
    default:
      return null;
  }
}