GitHubRepoConfig.fromMap constructor

GitHubRepoConfig.fromMap(
  1. Map<String, dynamic> map
)

Creates a GitHubRepoConfig from a map (typically from TOML config).

Expected map keys:

  • name: The repository display name
  • github_url: The GitHub repository URL
  • auth_token: Optional authentication token (for private repos)

Implementation

factory GitHubRepoConfig.fromMap(Map<String, dynamic> map) {
  return GitHubRepoConfig(
    name: map['name'] as String? ?? '',
    githubUrl: map['github_url'] as String? ?? '',
    authToken: map['auth_token'] as String?,
  );
}