toJson method

Map<String, Object> toJson()

Converts a HTTPIngressRuleValue instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempPaths = paths;

  jsonData['paths'] =
      tempPaths.map((e) => e.toJson()).toList(growable: false);

  return jsonData;
}