KnockRoomUpdate.fromJson constructor

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

Implementation

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