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