toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (urlPattern != null) 'urlPattern': urlPattern,
    if (requestMethod != null) 'requestMethod': requestMethod,
    if (requestMode != null) 'requestMode': requestMode,
    if (requestDestination != null) 'requestDestination': requestDestination,
    if (runningStatus != null) 'runningStatus': runningStatus!.toJson(),
    if (or != null) 'or': or!.map((e) => e.toJson()).toList(),
    if (not != null) 'not': not!.toJson(),
  };
}