handleValueFromBackend(isFavorite) {
    switch(isFavorite) {
      case 'true':
        return true;
      case 'false':
        return false;
      default:
        return isFavorite;
    }
  }
/**
   * Handle value of is_favorite property from backend.
   * It may be returned either boolean or string.
   */
Handle value of is_favorite property from backend.
It may be returned either boolean or string.
Handle value of is_favorite property from backend . It may be returned either boolean or string .
handleValueFromBackend(isFavorite) {
    switch(isFavorite) {
      case 'true':
        return true;
      case 'false':
        return false;
      default:
        return isFavorite;
    }
  }
handleValueFromBackend ( isFavorite ) { switch ( isFavorite ) { case 'true' : return true ; case 'false' : return false ; default : return isFavorite ; } }
Handle value of is_favorite property from backend.
Handle value of is_favorite property from backend .