InvitedRoomUpdate.fromJson constructor

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

Implementation

InvitedRoomUpdate.fromJson(Map<String, Object?> json)
  : inviteState = json
        .tryGetMap<String, List<Object?>>('invite_state')?['events']
        ?.map((i) => StrippedStateEvent.fromJson(i as Map<String, Object?>))
        .toList();