HTTPIngressRuleValue.fromJson constructor
Creates a HTTPIngressRuleValue from JSON data.
Implementation
factory HTTPIngressRuleValue.fromJson(Map<String, dynamic> json) {
final tempPathsJson = json['paths'];
final List<HTTPIngressPath> tempPaths = List<dynamic>.from(tempPathsJson)
.map(
(e) => HTTPIngressPath.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList();
return HTTPIngressRuleValue(
paths: tempPaths,
);
}