toJson method

Map<String, Object> toJson()

Converts a NonResourcePolicyRule instance to JSON data.

Implementation

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

  final tempNonResourceURLs = nonResourceURLs;
  final tempVerbs = verbs;

  jsonData['nonResourceURLs'] = tempNonResourceURLs;

  jsonData['verbs'] = tempVerbs;

  return jsonData;
}