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