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