core.Map<core.String, core.dynamic> toJson() => { if (networkConfig != null) 'networkConfig': networkConfig!, if (workerConfig != null) 'workerConfig': workerConfig!, };