StateFilter.fromJson constructor

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

Implementation

StateFilter.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']),
      containsUrl =
          ((v) => v != null ? v as bool : null)(json['contains_url']),
      includeRedundantMembers = ((v) =>
          v != null ? v as bool : null)(json['include_redundant_members']),
      lazyLoadMembers =
          ((v) => v != null ? v as bool : null)(json['lazy_load_members']),
      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']),
      unreadThreadNotifications = ((v) =>
          v != null ? v as bool : null)(json['unread_thread_notifications']);