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