EventFilter.fromJson constructor

EventFilter.fromJson(
  1. Map<String, Object?> json
)

Implementation

EventFilter.fromJson(Map<String, Object?> json)
    : limit = ((v) => v != null ? v as int : null)(json['limit']),
      notSenders = ((v) => v != null
          ? (v as List).map((v) => v as String).toList()
          : null)(json['not_senders']),
      notTypes = ((v) => v != null
          ? (v as List).map((v) => v as String).toList()
          : null)(json['not_types']),
      senders = ((v) => v != null
          ? (v as List).map((v) => v as String).toList()
          : null)(json['senders']),
      types = ((v) => v != null
          ? (v as List).map((v) => v as String).toList()
          : null)(json['types']);