Map<String, Object?> toJson() { var scope = this.scope; final json = <String, Object?>{}; json[r'scope'] = scope.value; return json; }