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