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