lib/GitRemote.php
static function fromJson(object $map): self {
    return new static(
      isset($map->name) && is_string($map->name) ? $map->name : '',
      isset($map->url) && is_string($map->url) ? $map->url : null
    );
  }
static function fromJson(object $map): self {
    return new static(
      isset($map->name) && is_string($map->name) ? $map->name : '',
      isset($map->url) && is_string($map->url) ? $map->url : null
    );
  }
static function fromJson ( object $ map ) : self { return new static ( isset ( $ map -> name ) && is_string ( $ map -> name ) ? $ map -> name : '' , isset ( $ map -> url ) && is_string ( $ map -> url ) ? $ map -> url : null ) ; }
Creates a new remote repository from the specified JSON map.
@param object $map A JSON map representing a remote repository.
@return static The instance corresponding to the specified JSON map.
Creates a new remote repository from the specified JSON map .