RankBy$cast function
Implementation
RankBy? RankBy$cast(value) {
if (value == RankBy.DISTANCE) return RankBy.DISTANCE;
if (value == RankBy.PROMINENCE) return RankBy.PROMINENCE;
return null;
}
RankBy? RankBy$cast(value) {
if (value == RankBy.DISTANCE) return RankBy.DISTANCE;
if (value == RankBy.PROMINENCE) return RankBy.PROMINENCE;
return null;
}