toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final cachingKeys = this.cachingKeys;
  final ttl = this.ttl;
  return {
    if (cachingKeys != null) 'cachingKeys': cachingKeys,
    if (ttl != null) 'ttl': ttl,
  };
}