toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = Map<String, dynamic>();
data['key'] = this.key;
data['value'] = this.value;
data['action'] = _getActionFromType();
if (this.unique != null) {
data['unique'] = this.unique;
}
return data;
}