toJson method
Implementation
Map<String, dynamic> toJson() {
final key = this.key;
final refValue = this.refValue;
final stringValue = this.stringValue;
return {
'key': key,
if (refValue != null) 'refValue': refValue,
if (stringValue != null) 'stringValue': stringValue,
};
}