toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (urlPattern != null) 'urlPattern': urlPattern,
if (resourceType != null) 'resourceType': resourceType!.toJson(),
if (interceptionStage != null)
'interceptionStage': interceptionStage!.toJson(),
};
}