toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'optimizeStorage',
    if (extra != null) '@extra': extra,
    'size': size,
    'ttl': ttl,
    'count': count,
    'immunity_delay': immunity_delay,
    'file_types': file_types,
    'chat_ids': chat_ids,
    'exclude_chat_ids': exclude_chat_ids,
    'return_deleted_file_statistics': return_deleted_file_statistics,
    'chat_limit': chat_limit
  };
}