toJson method

Map<String, dynamic> toJson()

Implementation

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