Filter.fromJson constructor
Implementation
Filter.fromJson(Map<String, Object?> json)
: accountData = ((v) => v != null
? EventFilter.fromJson(v as Map<String, Object?>)
: null)(json['account_data']),
eventFields = ((v) => v != null
? (v as List).map((v) => v as String).toList()
: null)(json['event_fields']),
eventFormat = ((v) => v != null
? EventFormat.values.fromString(v as String)!
: null)(json['event_format']),
presence = ((v) => v != null
? EventFilter.fromJson(v as Map<String, Object?>)
: null)(json['presence']),
room = ((v) => v != null
? RoomFilter.fromJson(v as Map<String, Object?>)
: null)(json['room']);