ProtocolMessage.fromMap(Map<String, Object?> obj) : seq = obj['seq'] as int, type = obj['type'] as String;