toJson method
Implementation
Map<String, Object?> toJson() {
var clauseNames = this.clauseNames;
var custom = this.custom;
var id = this.id;
var key = this.key;
var name = this.name;
var navigable = this.navigable;
var orderable = this.orderable;
var schema = this.schema;
var scope = this.scope;
var searchable = this.searchable;
final json = <String, Object?>{};
json[r'clauseNames'] = clauseNames;
json[r'custom'] = custom;
if (id != null) {
json[r'id'] = id;
}
if (key != null) {
json[r'key'] = key;
}
if (name != null) {
json[r'name'] = name;
}
json[r'navigable'] = navigable;
json[r'orderable'] = orderable;
if (schema != null) {
json[r'schema'] = schema.toJson();
}
if (scope != null) {
json[r'scope'] = scope.toJson();
}
json[r'searchable'] = searchable;
return json;
}