toJson method
Implementation
Map<String, dynamic> toJson() {
final key = this.key;
final type = this.type;
final value = this.value;
return {
if (key != null) 'Key': key,
if (type != null) 'Type': type.toValue(),
if (value != null) 'Value': value,
};
}