toJson method

Map<String, dynamic> toJson()

Implementation

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