toJson method
Implementation
Map<String, Object?> toJson() {
var operation = this.operation;
var restrictions = this.restrictions;
var content = this.content;
final json = <String, Object?>{};
json[r'operation'] = operation.value;
json[r'restrictions'] = restrictions.toJson();
if (content != null) {
json[r'content'] = content.toJson();
}
return json;
}