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