toJson method
Implementation
Map<String, Object?> toJson() {
var id = this.id;
var name = this.name;
var to = this.to;
var hasScreen = this.hasScreen;
var isGlobal = this.isGlobal;
var isInitial = this.isInitial;
var isAvailable = this.isAvailable;
var isConditional = this.isConditional;
var fields = this.fields;
var expand = this.expand;
var looped = this.looped;
final json = <String, Object?>{};
if (id != null) {
json[r'id'] = id;
}
if (name != null) {
json[r'name'] = name;
}
if (to != null) {
json[r'to'] = to;
}
json[r'hasScreen'] = hasScreen;
json[r'isGlobal'] = isGlobal;
json[r'isInitial'] = isInitial;
json[r'isAvailable'] = isAvailable;
json[r'isConditional'] = isConditional;
if (fields != null) {
json[r'fields'] = fields;
}
if (expand != null) {
json[r'expand'] = expand;
}
json[r'looped'] = looped;
return json;
}