toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'path': path,
  'pathType': pathType,
  'stripPrefix': stripPrefix,
  if (targetPort != null) 'targetPort': targetPort,
  if (targetContent != null) 'targetContent': targetContent!.toJson(),
};