toJson method
Serializes Arguments instance to JSON format.
Converts all configuration parameters to a JSON-serializable map for storage, transmission, or configuration file generation. Preserves all parameter values including optional configurations.
Returns map containing all configuration parameters with their current values. Null values are preserved for proper deserialization and configuration completeness.
Example output:
{
"file-path": "/path/to/app.apk",
"app-id": "1:123456789:android:abcdef",
"binary-type": "apk",
"release-notes": "Bug fixes and improvements",
"groups": "qa-team,beta-users"
}
Implementation
@override
Map<String, dynamic> toJson() => {
'file-path': filePath,
'app-id': appId,
'binary-type': binaryType,
'release-notes': releaseNotes,
'release-notes-file': releaseNotesFile,
'testers': testers,
'testers-file': testersFile,
'groups': groups,
'groups-file': groupsFile,
'token': cliToken,
};