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