toJson method
Serializes Arguments instance to JSON format.
Converts all configuration parameters to a JSON-serializable map for storage, transmission, or configuration file generation. Includes all GitHub-specific parameters for complete configuration.
Returns map containing all configuration parameters with their current values for serialization and persistence.
Example output:
{
"file-path": "/path/to/app.apk",
"repo-name": "my-app",
"repo-owner": "flutter-org",
"token": "ghp_xxxxxxxxxxxxxxxxxxxx",
"release-name": "v1.0.0",
"release-body": "Initial release"
}
Implementation
@override
Map<String, dynamic> toJson() => {
"file-path": filePath,
"repo-name": repoName,
"repo-owner": repoOwner,
"token": token,
"release-name": releaseName,
"release-body": releaseBody,
};