RoomFilter.fromJson constructor
Implementation
RoomFilter.fromJson(Map<String, Object?> json)
: accountData = ((v) => v != null
? StateFilter.fromJson(v as Map<String, Object?>)
: null)(json['account_data']),
ephemeral = ((v) => v != null
? StateFilter.fromJson(v as Map<String, Object?>)
: null)(json['ephemeral']),
includeLeave =
((v) => v != null ? v as bool : null)(json['include_leave']),
notRooms = ((v) => v != null
? (v as List).map((v) => v as String).toList()
: null)(json['not_rooms']),
rooms = ((v) => v != null
? (v as List).map((v) => v as String).toList()
: null)(json['rooms']),
state = ((v) => v != null
? StateFilter.fromJson(v as Map<String, Object?>)
: null)(json['state']),
timeline = ((v) => v != null
? StateFilter.fromJson(v as Map<String, Object?>)
: null)(json['timeline']);