toJson method

Map<String, Object> toJson()

Converts a NonResourceRule instance to JSON data.

Implementation

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

  final tempNonResourceURLs = nonResourceURLs;
  final tempVerbs = verbs;

  if (tempNonResourceURLs != null) {
    jsonData['nonResourceURLs'] = tempNonResourceURLs;
  }

  jsonData['verbs'] = tempVerbs;

  return jsonData;
}