toJson method
Implementation
Map<String, Object?> toJson() {
var color = this.color;
var ignoreUriAndModuleKeyValidation = this.ignoreUriAndModuleKeyValidation;
var moduleKey = this.moduleKey;
var position = this.position;
var title = this.title;
var uri = this.uri;
final json = <String, Object?>{};
if (color != null) {
json[r'color'] = color;
}
json[r'ignoreUriAndModuleKeyValidation'] = ignoreUriAndModuleKeyValidation;
if (moduleKey != null) {
json[r'moduleKey'] = moduleKey;
}
if (position != null) {
json[r'position'] = position.toJson();
}
if (title != null) {
json[r'title'] = title;
}
if (uri != null) {
json[r'uri'] = uri;
}
return json;
}