serialize method

Map<String, dynamic> serialize()

Implementation

Map<String, dynamic> serialize() {
  return {
    'key': key,
    'value': value,
    'ttl': ttl,
    'strategy': strategy,
  };
}